[wp-trac] [WordPress Trac] #9588: time() is not GMT time()

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 5 04:43:12 UTC 2010


#9588: time() is not GMT time()
--------------------------------+-------------------------------------------
  Reporter:  Denis-de-Bernardy  |        Type:  defect (bug)           
    Status:  reopened           |    Priority:  normal                 
 Milestone:  3.0                |   Component:  Date/Time              
   Version:  2.8                |    Severity:  normal                 
Resolution:                     |    Keywords:  has-patch needs-testing
--------------------------------+-------------------------------------------

Comment(by ryan):

 The changes to current_time() in that patch mean the same timestamp is
 returned whether the gmt flag is true or false when the default timezone
 is set.  That's kinda lame but  necessary to work with date() when a
 default timezone is set since date() expects UTC time and does its own
 offsetting.  The alternative would be to continue adding the offset and
 wrap all of the date functions so that they expect an offset when a
 default timezone is not set and don't expect one when there is no default
 timezone support. Ugh.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9588#comment:39>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list