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

DatePicker unable to select minimum date in certain timezones #2542

Closed
nacydee opened this issue Dec 2, 2020 · 1 comment · Fixed by #2544
Closed

DatePicker unable to select minimum date in certain timezones #2542

nacydee opened this issue Dec 2, 2020 · 1 comment · Fixed by #2544
Assignees
Labels
approved This issue is approved bug This issue is a bug in the code Medium Prio TOPIC B

Comments

@nacydee
Copy link

nacydee commented Dec 2, 2020

Describe the bug
minDate is provided in format "yyyy-MM-dd", there seem to be some date conversions happening that block the minimum date from being selected in certain time zones. For example when minDate is "2021-01-01", a user with Mumbai (GMT+5:30) timezone will be unable to select 2021-01-01, but the minimum date they are able to select is 2021-01-02. At the same time a user in the Pacific Timezone will be able select 2021-01-01, but they will also have the option to select 2020-12-31 although the date will be invalidated.

To reproduce
Steps to reproduce the behavior:

  1. Go to https://sap.github.io/ui5-webcomponents/playground/components/DatePicker/
  2. Change the browsers timezone to Mumbai (GMT+5:30). In Chrome you can open devtools select Menu “⋮” > More tools > Sensors > Change location to Mumbai. Check timezone has been changed.
  3. Scroll to the third example where min-date="1/1/2020". The earliest date you can select is 1/2/2020. Unable to select 1/1/2020.

Isolated example

Expected behavior
The minimum date should be available to select regardless of the timezone user is in.

Screenshots
Screen Shot 2020-12-02 at 9 29 27 AM

Priority: (optional) (Low, Medium, High or Very High)
Medium

@TeodorTaushanov TeodorTaushanov added approved This issue is approved bug This issue is a bug in the code Medium Prio TOPIC B labels Dec 3, 2020
@TeodorTaushanov
Copy link
Member

@SAP/ui5-webcomponents-topic-b, the issue is reproducible. Can you check it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This issue is approved bug This issue is a bug in the code Medium Prio TOPIC B
Projects
Status: Completed
3 participants