[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
Wed Jul 30 05:11:51 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: Awaiting Review
Component: Revisions | Version: 3.6.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+------------------------------
Changes (by adamsilverstein):
* keywords: => has-patch dev-feedback
Comment:
[attachment:25365.diff] includes the suggested fixes from Bira. Bira, can
you see if this patch resolves your issue?
I only applied the UTC fix to the revisions code so we stay within the
scope of this ticket; The issue deserves more attention in a new ticket:
scanning core I see several other uses of strtotime on gmt values, some
with no appended timezone, some with ' GMT', some with '+0000'
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25365#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list