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

date_default_timezone_get: unmention the warning #1238

Closed
wants to merge 1 commit into from

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Dec 22, 2021

It has not been the case since PHP 7.0:
php/php-src@b22caa8

jtojnar added a commit to fossar/selfoss that referenced this pull request Dec 22, 2021
Since the switch to Tracy, timezone warnings started to occur.
These are no an issue on PHP 7+:
php/doc-en#1238

Also fix path to php.ini.
Comment on lines +37 to +40
<para>
To make sure the return value matches reality, explicitly set <link linkend="ini.date.timezone">date.timezone</link>
to the correct timezone instead of relying on the guessing.
</para>
Copy link
Member

Choose a reason for hiding this comment

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

I think this can just be dropped altogether, as no guessing is performed anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it is still valuable to emphasize that the value is useless unless set explicitly. Maybe something like “Note that date.timezone does not default to the timezone of the operating system so you need to set the option explicitly to have it match reality.”

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, but why document that for date_default_timezone_get()?

jtojnar added a commit to fossar/selfoss that referenced this pull request Dec 25, 2021
Since the switch to Tracy, timezone warnings started to occur.
These are no an issue on PHP 7+:
php/doc-en#1238

Also fix path to php.ini.
jtojnar added a commit to fossar/selfoss that referenced this pull request Dec 25, 2021
Since the switch to Tracy, timezone warnings started to occur.
These are no an issue on PHP 7+:
php/doc-en#1238

Also fix path to php.ini.
@php php deleted a comment Jun 8, 2022
@derickr derickr closed this in 4bf21e8 Jun 9, 2022
@jtojnar jtojnar deleted the patch-1 branch June 9, 2022 10:23
tiffany-taylor pushed a commit to tiffany-taylor/doc-en that referenced this pull request Jan 16, 2023
claudepache pushed a commit to claudepache/php-doc-en that referenced this pull request Jun 1, 2023
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.

4 participants