Function defaultIsValidTimeZone

  • The default method for checking whether a timezone is valid or not.

    This implementation attempts to use the environment's Intl API. This may not work in all environments (Deno) but this is the best attempt at something generic.

    This approach was discovered after examining the source code for Luxon.

    Parameters

    • timezone: string

      The timezone.

    Returns boolean

    True if the timezone is supported.

Generated using TypeDoc