Skip to content

tz"Z" should be == to tz"UTC" #489

@kleinschmidt

Description

@kleinschmidt

These are AFAICT identical (besides the name) but are not ==:

julia> tz"Z" |> dump
FixedTimeZone
  name: InlineStrings.String15 InlineStrings.String15("Z")
  offset: TimeZones.UTCOffset
    std: Dates.Second
      value: Int64 0
    dst: Dates.Second
      value: Int64 0

julia> tz"UTC" |> dump
FixedTimeZone
  name: InlineStrings.String15 InlineStrings.String15("UTC")
  offset: TimeZones.UTCOffset
    std: Dates.Second
      value: Int64 0
    dst: Dates.Second
      value: Int64 0

julia> tz"Z" == tz"UTC"
false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions