[wp-trac] [WordPress Trac] #48830: Shipping Labels with wrong time 8 hours ahead

WordPress Trac noreply at wordpress.org
Fri Nov 29 06:38:05 UTC 2019


#48830: Shipping Labels with wrong time 8 hours ahead
--------------------------+------------------------------
 Reporter:  cbddotmarket  |       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 that code you use does not call
 `date_default_timezone_set()` to change default PHP time zone from UTC?

 So far all the issues with slipping time with 5.3 had been caused by that.
 It's not supported by core and unfortunately some things broke in a
 ''different'' way with 5.3 as side effect of work to resolve these issues.

 > The server time should be UTC.

 Doesn't matter, core boot always discards and sets PHP time zone
 explicitly to UTC.

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


More information about the wp-trac mailing list