CoastalCommitsPastes/server/node_modules/globalize/doc/api/date/load-iana-time-zone.md
2022-03-06 16:46:59 -08:00

558 B

Globalize.loadTimeZone( ianaTzData )

This method allows you to load IANA time zone data to enable options.timeZone feature on date formatters and parsers.

Parameters

ianaTzData

A JSON object with zdumped IANA timezone data. Get the data via iana-tz-data.

Example

Globalize.loadTimeZone({
  "zoneData": {
    ...
    "America": {
      ...
      "New_York": {
        abbrs: [],
        untils: [],
        offsets: [],
        isdsts: []
      }
      ...
    }
  }
});