[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:25:52 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:  assigned
 Priority:  normal                         |   Milestone:  4.9
Component:  Revisions                      |     Version:  3.6.1
 Severity:  normal                         |  Resolution:
 Keywords:  has-patch dev-feedback commit  |     Focuses:
-------------------------------------------+------------------------------
Changes (by adamsilverstein):

 * keywords:  has-patch dev-feedback => has-patch dev-feedback commit


Comment:

 Checking in core, there are several places where we handle gmt dates and
 add ' +0000'. [attachment:25365.5.diff] switches to this app[roach, which
 should be the same as using UTC.

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


More information about the wp-trac mailing list