Function canonicalizeTimezoneIdentifier

  • this function canonicalizes timezone identifiers wrong slashes and wrong lower/upper case is fixed e.g. europe/berlin => Europe/Berlin, utc => UTC, eUroPe/BERLIN => Europe/Berlin

    Parameters

    • timezone: string

    Returns string | null