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

Time zones with offsets below -11:59 and above 11:59 are not accepted by the Date class #289

Closed
avandecreme opened this issue Dec 27, 2022 · 1 comment · Fixed by #291
Closed

Comments

@avandecreme
Copy link
Contributor

The hour offset is checked to be at most 11 here:

getHoursOffset() > 11 ||

This prevent representing some time zones, for example LINT is UTC+14 and AoE is UTC-12.

Would you be interested by a patch fixing this?

@fbergmann
Copy link
Member

thank you for letting us know, a patch would certainly be helpful. Should you not have time to do that, we'll be able to construct test cases now that you have let us know. Thank yoiu

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 a pull request may close this issue.

2 participants