[wp-trac] [WordPress Trac] #48858: Incorrect UTC time in WP 5.3

WordPress Trac noreply at wordpress.org
Tue Dec 3 10:05:41 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):

 Could you please check what does `date_default_timezone_get()` returns at
 that point? It **must** be set to `UTC` in WP environment, which core does
 during load.

 I am not sure why would it be off in clean core environment, but it's
 mostly likely reason for `date()` to be off (if your server clock is
 verified to be correct).

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


More information about the wp-trac mailing list