[wp-trac] [WordPress Trac] #20328: get_date_from_gmt assumes current gmt_offset is appropriate

WordPress Trac noreply at wordpress.org
Tue Mar 5 16:03:39 UTC 2013


#20328: get_date_from_gmt assumes current gmt_offset is appropriate
---------------------------+------------------------------
 Reporter:  scottconnerly  |       Owner:
     Type:  defect (bug)   |      Status:  reopened
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Date/Time      |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+------------------------------

Comment (by nacin):

 Thank you! I have committed those tests.

 So, clearly any usage of `get_option( 'gmt_offset' )` is improper except
 when dealing with the current time. I can't say we currently use it often
 in core, however, so that's good.

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


More information about the wp-trac mailing list