[wp-trac] [WordPress Trac] #53780: PHP 8.1: DateTimeZone::getTransitions() change

WordPress Trac noreply at wordpress.org
Tue Aug 2 22:03:17 UTC 2022


#53780: PHP 8.1: DateTimeZone::getTransitions() change
--------------------------+------------------------------
 Reporter:  autotutorial  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  php81 close   |     Focuses:
--------------------------+------------------------------

Comment (by autotutorial):

 Actually you can check by creating a date with the DateTime class and php
 decides when DST or ST or other offset exists transition that does not use
 3600 seconds, also we have (wordpress) never checked for coincidence if
 the timezone parameter is offset since the timezone is theoretically set
 to UTC by the WordPress core.
 In this RFC change the preferred mode to php, but previously used a
 reverse default mode.

 https://github.com/WordPress/WordPress/blob/master/wp-settings.php#L68 and
 rfc php force DST
 https://wiki.php.net/rfc/datetime_and_daylight_saving_time

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


More information about the wp-trac mailing list