mde / timezone-js

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

Timezone incorrect or not loaded in the timezone registry #171

Closed MasterFO closed 4 years ago

MasterFO commented 9 years ago

Hi, I've got a problem with this library.

timezoneJS.timezone.zoneFileBasePath = '/js/timezone-js/tz/'; timezoneJS.timezone.defaultZoneFile = ['europe', 'asia', 'backward', 'northamerica']; timezoneJS.timezone.loadingSchemes.PRELOAD_ALL; timezoneJS.timezone.init({async: false}); dt = new timezoneJS.Date("2015/03/21 01:00:00 +0000", "Europe/London");

Console error: Uncaught Error: Timezone 'Europe/London' is either incorrect, or not loaded in the timezone registry.

The zoneFileBasePath is correct. Same error with empty init. What I have to do?

mde commented 4 years ago

This library is no longer maintained, and this repo is here only for historical interest.