[wp-trac] [WordPress Trac] #26977: Changing TimeZone Does Not Take Into Account Existing Post Timestamps

WordPress Trac noreply at wordpress.org
Fri Jan 31 18:00:47 UTC 2014


#26977: Changing TimeZone Does Not Take Into Account Existing Post Timestamps
--------------------------+-----------------------------
 Reporter:  cais          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Date/Time     |    Version:  3.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I do not believe this has been addressed but I also see this as an issue
 (although very edge-case).

 Currently testing various and sundry items I noticed the post time stamp
 was not correct (minor detail but what also pointed out this issue), for
 example with the default UTC+0 timezone in affect a post can be written at
 2:04 PM "local" time; now seeing this I changed to my "local" time
 (Toronto) saved settings and published a new post. The new post has a
 time-stamp of 12:42 PM ... and it appears *after* the post time-stamped at
 2:04 PM which IMO puts the post order out of correct time sequence.

 Yes, the time-stamp of the posts are correctly ordered but the time is not
 actually correct as the first post was written at 9:04 AM based on the
 "new" (current) timezone.

 Unknown if relevant but in this case the time is being collected via
 `get_the_time` (or `get_the_modified_time` as the case may be).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26977>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list