Skip to content

Getting wrong GMT value for America/Merida :Central Time - Merida #149

Description

@arvindzuddl

Describe the bug

We are using "react-timezone-select": "^3.2.8" and "spacetime": "^7.11.0" libraries for date time handling.
To get timezone options we are using useTimezoneSelect hook.
for America/Merida we are getting GMT-7:00 value but the actual value is GMT-6
code snippet
import { allTimezones, useTimezoneSelect } from 'react-timezone-select'; const timezones = { ...allTimezones, 'America/Merida': 'Central Time - Merida', }; const { options: timeZoneOptions } = useTimezoneSelect({ labelStyle, timezones, });

Reproduction

https://codesandbox.io/p/devbox/react-timezone-select-usage-spacetime-forked-gkq8yc

System Info

MacBook PRO, GMT+4, Chrome Browser

Used Package Manager

npm

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

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

      Issue actions