Skip to content

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

@rishabhdev

Description

@rishabhdev

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions