Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#53780 new defect (bug)

PHP 8.1: DateTimeZone::getTransitions() change

Reported by: autotutorial Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Date/Time Keywords: php81
Focuses: Cc:


This is a follow-up to #49038.

PHP 8.1 getTransitions, The data format that the library uses has changed, and will now only contain a list of transitions up until the last time the *rules* changed.

Change History (2)

#1 @Rarst
4 months ago

From quick check we only use transition list in options for informational output about next upcoming transition for the chosen time zone.

So, assuming this lands in stable PHP release, we would need either alternate way to calculate next transition or drop this output.

#2 @swissspidy
4 months ago

  • Keywords php81 added
  • Summary changed from getTransitions change to PHP 8.1: DateTimeZone::getTransitions() change
Note: See TracTickets for help on using tickets.