ui5-webcomponents
ui5-webcomponents copied to clipboard
ui5-datepicker: does not handle some timezones and DST correctly
Describe the bug The Datepicker selects the wrong year in some timezones.
To reproduce
- Set your local timezone to PDT.
- Go to https://sap.github.io/ui5-webcomponents/playground/components/DatePicker/
- Inside the first Datepicker, type:
01.01.2020 - The Datepicker has selected the 01.01.2019 instead of 01.01.2020.
For other timezones like CEST it is working as expected.

Expected behavior The Datepicker should select the correct time in all timezones
Affected components (if known) ui5-datepicker
Original Issue https://github.com/SAP/ui5-webcomponents-react/issues/674
I just noticed that there is already a similar issue open for the ui5-daterange-picker (https://github.com/SAP/ui5-webcomponents/issues/2182). If the problem has the same source (what I suspect), please feel free to close this one.
This issue is still relevant.