Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note about time zone changes in PHP 8.2 #4017

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BackEndTea
Copy link
Contributor

This MR documents the change made in: php/php-src@6770158

As mentioned in the issue: php/php-src#11496

Since PHP 8.2, the fallback of the timezone is now UTC, rather than the timezone supplied by the system.

Previously changed here:
php/php-src@6770158

And mentioned in this issue:
php/php-src#11496

The fallback is now UTC, rather than the system timezone if none are configured
@BackEndTea BackEndTea changed the title Add a note about time zone changes in PHP *.2 Add a note about time zone changes in PHP 8.2 Nov 6, 2024
@Girgias Girgias requested a review from derickr November 8, 2024 07:25
<simpara>
Default timezones will fall back to UTC, rather than system timezone if
none are defined in the <link linkend="ini.date.timezone">date.timezone</link> ini setting.
</simpara>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not what happened in the code linked to. It was only a change in warning. PHP never really used direct system timezone. In the far past, it tried to guess which timezone the system was by looking at UTC offset, the DST flag, and the abbreviation. The warning for that was finally removed in PHP 7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants