mde / timezone-js

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

Incorrect initialization of a TimezoneJS.Date from an ISO string #70

Closed Picarro-SzeMengTan closed 11 years ago

Picarro-SzeMengTan commented 11 years ago

With the browser timezone set to America/Los_Angeles, for which the DST transition occurred on March 11 2012,

var dt = new TimezoneJS.Date("2012-03-11T09:00:00.000Z"); console.log(dt.toISOString());

incorrectly returns "2012-03-11T10:00:00.000Z".

longlho commented 11 years ago

duplicate of #35