[wp-trac] [WordPress Trac] #17278: Updater shows last check in 1970
WordPress Trac
wp-trac at lists.automattic.com
Wed May 4 01:43:03 UTC 2011
#17278: Updater shows last check in 1970
-----------------------------+------------------------
Reporter: hebbet | Owner: nacin
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 3.2
Component: Upgrade/Install | Version: 3.2
Severity: major | Resolution:
Keywords: needs-patch |
-----------------------------+------------------------
Changes (by greuben):
* keywords: has-patch => needs-patch
Comment:
My bad, the problem is not timestamp. gmdate and date take local time if
timestamp is not provided.
The second parameter in date and gmdate is type casted internally to long
integer. Hence `false` becomes zero and the wrong time is generated
Try this:
{{{
echo gmdate( $dateformat );
echo gmdate( $dateformat, false );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17278#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list