[wp-trac] [WordPress Trac] #25365: timeAgo attribute for revisions produces the wrong result due to missing UTC in strtotime

WordPress Trac noreply at wordpress.org
Thu Sep 21 23:32:27 UTC 2017


#25365: timeAgo attribute for revisions produces the wrong result due to missing
UTC in strtotime
------------------------------+------------------------------
 Reporter:  biranit           |       Owner:  adamsilverstein
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.9
Component:  Revisions         |     Version:  3.6.1
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------------------
Changes (by adamsilverstein):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41559"]:
 {{{
 #!CommitTicketReference repository="" revision="41559"
 Revisions: correct a timezone display issue.

 When preparing the data for the revisions screen, add ' +0000' to the gmt
 date string before passing it thru `strtotime`.

 Props biranit, nacin, buley.
 Fixes #25365.
 }}}

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


More information about the wp-trac mailing list