ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-datepicker: does not handle some timezones and DST correctly

Open Lukas742 opened this issue 6 years ago • 2 comments

Describe the bug The Datepicker selects the wrong year in some timezones.

To reproduce

  1. Set your local timezone to PDT.
  2. Go to https://sap.github.io/ui5-webcomponents/playground/components/DatePicker/
  3. Inside the first Datepicker, type: 01.01.2020
  4. The Datepicker has selected the 01.01.2019 instead of 01.01.2020.
Screenshot 2020-09-09 at 06 06 10

For other timezones like CEST it is working as expected. Screenshot 2020-09-09 at 15 10 06

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

Lukas742 avatar Sep 09 '20 13:09 Lukas742

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.

Lukas742 avatar Sep 09 '20 13:09 Lukas742

This issue is still relevant.

fifoosid avatar Sep 11 '20 10:09 fifoosid