-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Intl] Support time in generated data in currencies validity #61859
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
|
Ah, I think we should remove the TZ info, it should be implicit: |
stof
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currencies need to be updated, as it uses \DateTimeImmutable::createFromFormat('Y-m-d'): https://github.com/symfony/symfony/blob/52561f9d9de633b59834f58f47b23b77ad966a62/src/Symfony/Component/Intl/Currencies.php#L228C17-L228C61
note that if you want to omit the +00:00 TZ info, you need to force the UTC timezone when consuming it, to avoid issues for servers using a different default timezone in their php.ini.
@nicolas-grekas Ok, I'll remove the +00:00 even though I deliberately put it there to avoid any confusion with the source XML files. @stof The methods that process the |
… declaration as the timezone is missing from the format
|
Thank you @Crovitche-1623. |
@nicolas-grekas
see #61837 (comment)
Note: This PR is a prerequisite of #61837