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

Daylight saving not considered while computing offset for today date #820

Open
rishabhdev opened this issue Dec 3, 2020 · 0 comments
Open

Comments

@rishabhdev
Copy link

rishabhdev commented Dec 3, 2020

today.locale(value.locale()).utcOffset(value.utcOffset());

utcOffset can change for value when the month is changed from the picker.

How to replicate:

  1. Initialize with a moment date with US/Chicago time zone
  2. Change the picker month from November to October by clicking on the "previous" button.
  3. You will see UTC offset for value has changed from -360 to -300, but the same offset is applied to today date as well (which can be of November with UTC offset of -360)
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

1 participant