Skip to content

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

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
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions