Skip to content

getTimezoneOffset for UTC+[X] does not work #256

Open
@adamxi

Description

@adamxi

Using getTimezoneOffset with e.g.: "UTC+8" does not work.

Internally the tzParseTimezone function does not use the "patterns.timezone" regex which seems it would have been able to capture the hour offset just fine:

image
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @adamxi

        Issue actions

          getTimezoneOffset for UTC+[X] does not work · Issue #256 · marnusw/date-fns-tz