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
Incorrect timezone parsing for dates in the far future #645
Comments
The codebase is possibly running into this problem: https://en.wikipedia.org/wiki/Year_2038_problem |
No, because javascript using the number format (float) and not integer. Might be an issue with the dst tzdb data, i will check later. latest js-joda is using |
@pithu hi thanks for getting back to me. I'm using the following versions: I'm not sure how Google calendar parses it's dates. I know Javascript's inbuilt Intl.DateTimeFormat works as expected. I wrote the following function that I'm using in the interim to deal with this issue:
|
Ok, in fact its a 2038 problem, we are using the unix tool Update: |
@pithu thanks for the update. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
Should be fixed since |
I've noticed dates in London timezone are being parsed differently between '2022-04-22T15:00:00' and '2038-04-22T15:00:00'.
LocalDateTime.parse(
'2022-04-22T15:00:00',
DateTimeFormatter.ISO_LOCAL_DATE_TIME
)
.atZone(ZoneId.of('Europe/London'))
.format(DateTimeFormatter.ISO_INSTANT)
=> '2022-04-22T14:00:00Z' (correct)
LocalDateTime.parse(
'2038-04-22T15:00:00',
DateTimeFormatter.ISO_LOCAL_DATE_TIME
)
.atZone(ZoneId.of('Europe/London'))
.format(DateTimeFormatter.ISO_INSTANT)
=> '2038-04-22T15:00:00Z' (incorrect?)
Is this a bug? JS Date and other apps like Google Calendar parse '2038-04-22T15:00:00' (London timezone) to '2038-04-22T14:00:00Z' which is different from js-joda.
The text was updated successfully, but these errors were encountered: