mde / timezone-js

DEPRECATED: Timezone-enabled JavaScript Date object. Uses Olson zoneinfo files for timezone data.
824 stars 183 forks source link

node-preprocess with exemplarCities fails while executing #76

Closed jgarcia241 closed 4 years ago

jgarcia241 commented 11 years ago

Hi,

I have created the JSON file with node-preprocess.

If I create the file with all cities, it works fine, If I just want some cities, the json file is generated fine, but on runtime it fails with an error:

Uncaught TypeError: Cannot read property '1' of null date.js:553 parseTimeString date.js:553 getBasicOffset date.js:604 parseZones date.js:939 builtInLoadZoneFile date.js:516 loadZoneFile date.js:880 getZone date.js:588 getTzInfo date.js:986 timezoneJS.Date.toString date.js:432 timezoneJS.Date.toGMTString date.js:420 timezoneJS.Date.toUTCString date.js:483 (anonymous function)

I did the minimal file with just 1 city (Europe/London), and it still fails.

Any clue?