Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moment Timezone not parse correct time #773

Closed
ChronoSIDA opened this issue Jul 24, 2019 · 1 comment
Closed

Moment Timezone not parse correct time #773

ChronoSIDA opened this issue Jul 24, 2019 · 1 comment

Comments

@ChronoSIDA
Copy link

Hello all, somehow i tried to get the timezone of America/New_York (my locale time is -1 hour from EST). But im always getting the same time when i use moment(new Date()).tz("America\New_York"). Am i using the wrong method or what happened? Can someone help me out please?

Here is a jsFiddle to it:https://jsfiddle.net/Lgr3qdjf/

@ellenaua
Copy link
Contributor

ellenaua commented Sep 7, 2019

@ChronoSIDA there should be '/' instead of ''
Change "America\New_York" to "America/New_York" )

@ellenaua ellenaua closed this as completed Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants