-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] Fix wrong DateTime on outdated ICU library #31865
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
Conversation
/cc @ro0NL |
@aweelex Does it work if we pass the timezone as a |
@xabbuh oh, yes. And it seems to be the best way to solve this problem. Because we already have exeption on wrong |
Thank you for checking. Can you rebase your changes on the |
Ok, it seems that changes should go to 3.4 and 4.4. I rebased commits to 3.4. Is everything alright here? @nicolas-grekas? |
Thank you @aweelex. |
This PR was merged into the 3.4 branch. Discussion ---------- [Form] Fix wrong DateTime on outdated ICU library | Q | A | | --- | --- | | Branch? | 3.4 | | Bug fix? | Yes | | New feature? | No | | BC breaks? | No | | Deprecations? | No | | Tests pass? | Yes | | Fixed tickets | --- | | License | MIT | There is a problem, when server uses outdated version of ICU (php-intl). It throws no exeption or debug message on unexisting Timezone. So sometimes you can get wrong DateTime in Forms, because Intl uses 'Etc/Unknown' (UTC+0) instead correct Timezone. And it happens very unobvious. I added `\IntlExeption` for that cases. Commits ------- a6025ab Change IntlTimeZone to DateTimeZone
There is a problem, when server uses outdated version of ICU (php-intl).
It throws no exeption or debug message on unexisting Timezone. So sometimes you can get wrong DateTime in Forms, because Intl uses 'Etc/Unknown' (UTC+0) instead correct Timezone. And it happens very unobvious.
I added
\IntlExeption
for that cases.