Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.

Getting different results from the string constructor #54

Closed
hnadra opened this issue Jan 4, 2013 · 0 comments
Closed

Getting different results from the string constructor #54

hnadra opened this issue Jan 4, 2013 · 0 comments

Comments

@hnadra
Copy link

hnadra commented Jan 4, 2013

My local time is "America/Chicago" (UTC-06:00).

new timezoneJS.Date(2013, 00, 01, "America/New_York").getTime() => 1357016400000 (correct)
but:
new timezoneJS.Date("01/01/2013", "America/New_York").getTime() => 1357020000000 (incorrect)

Also:
new timezoneJS.Date(2013, 00, 01, "America/Los_Angeles").getTime() => 1357027200000 (correct)
but:
new timezoneJS.Date("01/01/2013", "America/Los_Angeles").getTime() => 1357020000000 (incorrect)

@mde mde closed this as completed Jan 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants