Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 558 Bytes

load-iana-time-zone.md

File metadata and controls

29 lines (23 loc) · 558 Bytes

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: []
      }
      ...
    }
  }
});