[wp-trac] [WordPress Trac] #9588: time() is not GMT time()
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 25 08:07:23 UTC 2009
#9588: time() is not GMT time()
--------------------------------+-------------------------------------------
Reporter: Denis-de-Bernardy | Type: defect (bug)
Status: reopened | Priority: normal
Milestone: 2.9 | Component: Date/Time
Version: 2.8 | Severity: normal
Resolution: | Keywords: has-patch needs-testing
--------------------------------+-------------------------------------------
Comment(by Denis-de-Bernardy):
as much as I agree on the diagnosis, this ticket and #9586 and #8662 were
opened precisely because time() is not a gm time and it occasionally has
side effects because WP makes the assumption that it is.
testing revealed that it "automagically" corrects itself due to
wp_timezone_override_offset(). further up, I've attached a screenshot
where time() is used before the latter function is called, complete with
the resulting side effect and bug.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9588#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list