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

Timezone formatting between 00:00 to 01:00 #47

Closed
NellyHayrapetyan opened this issue Feb 12, 2020 · 2 comments
Closed

Timezone formatting between 00:00 to 01:00 #47

NellyHayrapetyan opened this issue Feb 12, 2020 · 2 comments

Comments

@NellyHayrapetyan
Copy link

I want to report about an issue connected with date-fns-tz utcToZonedTime function. Whenever I pass time which is between 00:00 to 01:00 and give a timezoneId it formats with next day date. For example when I pass utcToZonedTime(1581398100000, 'America/New_York') (1581398100000 as utc string "Tue Feb 11 2020 05:15:00") the result is "Wed Feb 12 2020 00:15:00 GMT-0500 (Eastern Standard Time)" which is wrong it should be "Wed Feb 11 2020 00:15:00 GMT-0500 (Eastern Standard Time)". I found out that this is happening on chrome Version 80.0.3987.87 (64-bit)

@hyyan
Copy link
Contributor

hyyan commented Feb 12, 2020

@NellyHayrapetyan try the latest version v1.0.10, it might be related to #38 , #41

@NellyHayrapetyan
Copy link
Author

It helped thank you

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