iana-tz-data
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -8,9 +8,9 @@ var momentTimezoneJson = require("./latest.json"); | ||
momentTimezoneJson.zones.forEach(({name, abbrs, untils, offsets}) => { | ||
momentTimezoneJson.zones.forEach(({name, abbrs, untils, offsets, isdsts}) => { | ||
name = name.split('/'); | ||
name.slice(0, -1).reduce(function (tree, item) { | ||
return tree[item] || (tree[item] = {}); | ||
}, output.zoneData)[name.slice(-1)[0]] = {abbrs, untils, offsets}; | ||
}, output.zoneData)[name.slice(-1)[0]] = {abbrs, untils, offsets, isdsts}; | ||
}) | ||
console.log(JSON.stringify(output, null, 2)); |
{ | ||
"name": "iana-tz-data", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "IANA", |
Sorry, the diff of this file is too big to display
8548943
8
538927