Skip to content

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

Closed
@russhwolf

Description

@russhwolf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeThis could break existing code

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions