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

Strange behavior of the time picker (time duplication) when you select March 31 and then March 30 #57

Open
OrestMaryniuk opened this issue Mar 29, 2024 · 1 comment
Labels

Comments

@OrestMaryniuk
Copy link

Hi, while using this great library, I noticed a strange behavior of the time picker.

  1. pick March 31
  2. pick March 30
  3. We can see time duplication

Haven't noticed this with any other dates

Screencast from 29 03 24 14_37_47

@Feshchenko Feshchenko added the bug label Aug 9, 2024
@Feshchenko
Copy link
Contributor

Feshchenko commented Aug 9, 2024

Hey @OrestMaryniuk thanks for submitting this.
I'm a bit confused with this issue, but it turns out that this is a JS Date glitch.
new Date(2024, 2, 31, 0, 179) will give you Sun Mar 31 2024 02:59:00 GMT+0200
new Date(2024, 2, 31, 0, 180) will give you Sun Mar 31 2024 04:00:00 GMT+0200
I will think about how to change the time logic to avoid this, and also I can't find any other date with this issue
And it is specific to 2024.

UPDATED: it is related to daylight saving time so 3PM is not exist in your region and you can't pick it 🤷 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants