[wp-trac] [WordPress Trac] #49038: Timezone setting does not display correct time of next DST transition

WordPress Trac noreply at wordpress.org
Sun Dec 22 17:37:38 UTC 2019


#49038: Timezone setting does not display correct time of next DST transition
--------------------------+-----------------------
 Reporter:  autotutorial  |       Owner:  Rarst
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  5.3.3
Component:  Date/Time     |     Version:  5.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------

Comment (by autotutorial):

 forget any Dayligth saving time or Standard time in context for output.
 In the past they tried to calculate the difference (wrongly), now if you
 always use an explicit timezone in DateTime all the data is safe.
 If you calculate the timestamp offset (always UTC) and do the arithmetic
 operation you can create with UTC timezone and display in the correct way
 (even in the past it was like that, but with your help and UTC defined
 there is no margin of error)

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


More information about the wp-trac mailing list