[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
Mon Jun 30 18:10:19 UTC 2014


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

Comment (by buley):

 I can confirm that in my case, timezone is set correctly in WordPress
 under Settings->General. It's also set correctly in PHP using
 `date_default_timezone_set()`.

 To repeat, the problem is not that WordPress uses UTC to represent dates
 internally. The problem is that in one single instance feeds
 `human_time_diff()` a UTC date for external display of a localized time.

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


More information about the wp-trac mailing list