|
today.locale(value.locale()).utcOffset(value.utcOffset()); |
utcOffset can change for value when the month is changed from the picker.
How to replicate:
- Initialize with a moment date with US/Chicago time zone
- Change the picker month from November to October by clicking on the "previous" button.
- 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)