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

TimeZone..of("UTC") isn't equal to TimeZone.UTC #474

Open
russhwolf opened this issue Jan 12, 2025 · 0 comments
Open

TimeZone..of("UTC") isn't equal to TimeZone.UTC #474

russhwolf opened this issue Jan 12, 2025 · 0 comments

Comments

@russhwolf
Copy link

It's very unintuitive that this assert fails.

assertEquals(TimeZone.UTC, TimeZone.of("UTC"))

I've re-discovered this fact multiple times when writing tests around datetime logic with time zones.

Presumably this is the same root cause as #222

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

1 participant