[wp-trac] [WordPress Trac] #48858: Incorrect UTC time in WP 5.3
WordPress Trac
noreply at wordpress.org
Tue Dec 3 10:50:08 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 Rarst):
Ok, so that `01` is `13` hours I am guessing (`h` vs `H` hour format) and
UTC time still seems to be 3 hours ''ahead'' of London time. This is a
really strange one.
Let's try dumping everything at once, please:
{{{#!php
var_dump(
'time(): ' . time(),
'timezone_string: ' . get_option( 'timezone_string' ),
'gmt_offset: ' . get_option( 'gmt_offset' ),
'date_default_timezone_get(): ' . date_default_timezone_get(),
'date(): ' . date( DATE_RFC3339 ),
'gmdate(): ' . gmdate( DATE_RFC3339 ),
'date_i18n(): ' . date_i18n( DATE_RFC3339 ),
'wp_date(): ' . wp_date( DATE_RFC3339 ),
);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48858#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list