[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 Jun 26 07:57:32 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 Biranit):

 I think in my case, the issue is down to the fact that our theme's
 function file has the line:

 date_default_timezone_set('Asia/Jerusalem');

 For us, timezone functions are crucial. Everything on the server is set up
 for this timezone -- including system AND hardware clock.

 Yet the revisions are all off, as they appear in UTC+0 instead of UTC+3
 (Asia/Jerusalem).

 Personally, I still think this is a bug - or just an oversight - that
 should be fixed...

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


More information about the wp-trac mailing list