[wp-trac] [WordPress Trac] #38774: Date and time APIs for posts make wrong timezone assumptions

WordPress Trac noreply at wordpress.org
Wed May 3 23:07:12 UTC 2017


#38774: Date and time APIs for posts make wrong timezone assumptions
--------------------------+------------------------------
 Reporter:  Rarst         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:  4.6.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by jdgrimes):

 I think that this partly depends on what the date is going to be used for.
 In some cases the intention might be to show what time it actually was on
 the site *at the time a post was published*, not what time it was on the
 site then relative to the site's current timezone.

 Consideration needs to be given to what circumstances cause a site's
 timezone to change, and which of these results users are most likely to
 want/expect.

 However, when formatted with the timezone, as in your example, the result
 does of course need to be generated from the GMT fields, because the
 timezone of the other fields is not known.

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


More information about the wp-trac mailing list