mde / timezone-js

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

No DST change for some timezones (New Work for example) ? #142

Closed alessioalex closed 10 years ago

alessioalex commented 10 years ago
    console.log((new timezoneJS.Date(2014, 3, 10, 11, 11, 'America/New_York').getTime() - new timezoneJS.Date(2014, 3, 8, 11, 11, 'America/New_York')) / (1000 * 60 * 60));

The result will be 48 hours, but the DST changes occur on March 9th, so is this a bug?

alessioalex commented 10 years ago

Nevermind, the month argument was wrong: it should have been 2 instead of 3 for March duh.