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
|
Posted: 17 March 2014 11:21 AM |
|
|
|
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
|
Posted: 07 April 2014 11:57 AM |
# 1
|
|
|
Looks like you acutally want to use something like is_int instead.
invat returns non-zero values for things like ‘2014-03-09’
|
|
|