Plugin

Archived
Forum
(read-only)

DT Plugin

ExpressionEngine 2, ExpressionEngine 3

Back to this add-on's main page
View Other Add-ons From Jerry Price

     

UNIX time not working with set param

Bug Report

Fusionary
Fusionary

I’m passing in a timestamp to the set param, but it was mis-reading it because it still just always came in as a string.

This small change in the _parseDate method fixes it (adding the intval check):

if(gettype($dt) == 'integer' || intval($dt) !== 0)   $ts=$dt
Fusionary
# 1
Fusionary

Looks like you acutally want to use something like is_int instead.

invat returns non-zero values for things like ‘2014-03-09’