[wp-trac] [WordPress Trac] #28636: Add functions for working with local dates and times

WordPress Trac noreply at wordpress.org
Fri Aug 22 02:19:36 UTC 2014


#28636: Add functions for working with local dates and times
-------------------------+-----------------------------
 Reporter:  mboynes      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Date/Time    |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |     Focuses:
-------------------------+-----------------------------
Changes (by nacin):

 * keywords:   => 2nd-opinion
 * milestone:  Awaiting Review => Future Release


Comment:

 This is clever. I wish we could back away from setting UTC but that ship
 has long sailed.

 I think this would break when dealing with arbitrary GMT offsets. Example,
 UTC+3.5 (Iranian Standard Time). gmt_offset can store any arbitrary float.

 We probably need a more rigorous way to handle timezone juggling, which
 would make this easier.

 I'd be curious what rmccue thinks as he is pretty familiar with date/time
 handling in PHP and is dealing with similar issues in the REST API.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28636#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list