[wp-trac] [WordPress Trac] #48858: Incorrect UTC time in WP 5.3
WordPress Trac
noreply at wordpress.org
Tue Dec 3 13:18:11 UTC 2019
#48858: Incorrect UTC time in WP 5.3
--------------------------+------------------------------
Reporter: balykin95 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: 5.3
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by balykin95):
Replying to [comment:15 Rarst]:
> Oookay, I think I see a code path that breaks for you there
(`date_i18n()` with GMT flag).
>
> Let's try this please:
Output of new var_dump
{{{
string(44) "date_i18n() / GMT: 2019-12-03T16:17:07+03:00"
string(42) "wp_date() / UTC: 2019-12-03T16:17:07+03:00"
string(17) "UTC offset: 10800"
string(50) "date_create() / default: 2019-12-03T13:17:07+00:00"
string(46) "date_create() / UTC: 2019-12-03T16:17:07+03:00"
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48858#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list