-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
"timezone (Etc/GMT+6) is not a known timezone" errors with php v8.1.14 #2915
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
As you may know, OpenMage has taken an important step and recently adopted ZF1-Future, which completely replaces everything that previously existed in /app/code/core/Zend and /lib/Zend directories. Until we find a solution, I think it would be advisable to post the issue in this repository https://github.com/Shardj/zf1-future/issues too. It remains to be analyzed if we follow the PHP recommendations then changes are necessary, most likely all GMT-n/GMT+n variants will be removed, but the change should be made in ZF1-Future repository, if it is not possible we will find a patch type solution. |
Issue confirmed directly after upgrading to PHP 8.1.14. |
it kinda seems a php bug but maybe we could open an issue to https://github.com/Shardj/zf1-future to remove those timezones? |
I am not sure what code is actually causing this error. Has anyone been able to narrow it down any further? |
@rfeese @elidrissidev
(.... or search/debug edit: tested with php8.2 and have no errors .... |
ZF1 uses this file .... https://github.com/unicode-org/cldr/blob/main/common/supplemental/windowsZones.xml |
Do I need to set up such a timezone in the store config to be affected by this problem? Edit: to be affected one needs e.g. switch the system timezone to one mentioned above. After that bug is reproducible (8.1.14). Wasn't sure about that after reading the issue description above (OpenMage 20.0.16). |
@sreichel AFAIK this happens only in 8.1.14, not 8.2. and my timezone is the default from sample data pack. |
@elidrissidev I can reproduce the bug in PHP 8.1.14 as well as 8.2.1 (in OpenMage 20.0.16, I'm aware that this is not the most recent OM version). |
From what I have analyzed, we are not the only ones affected and the reports are starting to appear. We don't have to modify OpenMage or ZF1-Future. It is a bug in PHP related to the recently timelib update. @derickr should revert the PR until a better solution is found. Details here php/php-src#9700. Until then, those who face this issue must establish temporary a timezone in the Continent/City format. |
Do I have to enable DeveloperMode or something to see this problem? |
Only requirement is to have PHP 8.1.14/8.2.1 and you should the error when you try to save any product (don't forget to reload php-fpm if you've just updated). |
So here's where the "Etc/GMT+n" timezone is coming from: It's not clear to me yet how to fix this temporarily while waiting for a fix from upstream. |
You should really not use the Having said that, this is now fixed for PHP 8.1.15 and PHP 8.2.2 as per php/php-src@d12ba11 |
Thank you so much @derickr! |
Totally agree. Etc+n/Etc-n should be avoided from now on because they can produce different results. This is actually the official recommendation that was posted before https://www.php.net/manual/en/timezones.others.php. |
@addison74 Issue opened on zf1-future to address this. |
If the PHP team warns us not to use those timezone formats, why should they be maintained in ZF1-Future? You did very well @elidrissidev. |
Should PHP 8.1.14 and 8.2.1 be added to composers conflict section? |
this seems like a great idea |
Mhhh. conflict sections seems wrong, but whats the correct pattern to exclude specific versions for ... ?
|
I was checking it, it could be something like |
Preconditions (*)
magento-lts/lib/Zend/Locale/Data/windowsZones.xml
Line 17 in 984dfcb
Steps to reproduce (*)
Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: