-
Notifications
You must be signed in to change notification settings - Fork 730
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
Typing in a date with yyyy-MM-dd format selects wrong day #678
Comments
Bump. Same issue here. |
I'm too having the same issue. Any fix for this? |
Same. Bump |
In order to fix this in my project I changed the parseTypedDate method as follows... |
One may be facing this issue based on the timezone. If you're behind UTC, you may be facing this issue. This is related to how the browser parses the date. To illustrate, try typing While typing The library can be updated to parse the date this way to solve this issue. |
uhhh, that's really a bummer to see that... new Date(): Date Sat Jul 20 2019 16:20:14 GMT-0400 (Chilenische Normalzeit) So apparently new Date('2019-07-20') is parsed with hours: 00:00:00 so it discounts 4 hours ()in my case because of the timezone offset thus giving 24-4hrs=20. THERE IS A DIFFERENT WORKAROUND |
Until the library is fixed one work around can be to just add a fictional 12pm time? So |
You'd think so but no, it can still cause issues with certain timezones |
Wow, this is quite a dated issue and still not update? Does anyone know the status of this project? Has it been "abandoned" |
@maxim25 You recently commented on this project so I thought I would ping you. I am trying to use this component and allow users to enter into the component object, but I can't seem to figure out how to enable data entry? Is this something that should work by default, or must I enable it (I don't see it as an available prop?) |
Add |
@maxim25 thank you so much, I can’t believe I missed that. I read and reread the props section but bypassed it obviously. |
This is such a severe bug - that picking one date results in another being recorded - that it can only serve as an indicator of an abandoned project. |
Bumping |
1 similar comment
Bumping |
It would be great to allow direct input of the MySQL format but typing it in triggers the previous day to be selected in the calendar.
'yyyy-MM-d' format works as expected.
The text was updated successfully, but these errors were encountered: