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

UTC vs Etc/UTC - CalendarBuilder Exception (java.time.DateTimeException: Unknown timezone identifier [UTC]) #686

Open
KaiSuchomel opened this issue Apr 19, 2024 · 4 comments
Assignees

Comments

@KaiSuchomel
Copy link

Describe the bug
When using a Calendar with Timezone UTC and convert to String and back a Exception occurs.
java.time.DateTimeException: Unknown timezone identifier [UTC]
Hint: see TimeZoneRegistryImpl.getZoneId()
The contained zoneIds (Field) does not contain a Value for UTC.

To Reproduce
KaiSuchomel@b812997
I have created a Test(UTCCalendarEqualsTest) with UTC and Etc/UTC Calendars.
The UTC Test is failing with the Exception.

Expected behavior
UTC Test should be handled like Etc/UTC

Environment (please complete the following information):

  • OS: MacOs
  • Java Version 21
  • iCal4j 4.0.0-rc6-pre
@KaiSuchomel
Copy link
Author

@ChMThiel FYI

@benfortuna
Copy link
Member

benfortuna commented Apr 27, 2024

UTC is defined as an alias of Etc/UTC, but I think there was an issue with how the aliases are resolved. Have committed a fix now. It's included in release rc6.

@KaiSuchomel
Copy link
Author

@benfortuna
My Test is still failing.
See Commit (KaiSuchomel@1220dae) for the Testcase.

@KaiSuchomel
Copy link
Author

Please Reopen this Issue. Thx

@benfortuna benfortuna reopened this Apr 29, 2024
@benfortuna benfortuna self-assigned this Apr 29, 2024
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

No branches or pull requests

2 participants