react-datetime
react-datetime copied to clipboard
Select wrong date 31/08 v3.1.1
"react-datetime": "3.1.1"
select date 2021-09-01 then set date 2021-08-31 the date input shows 2021-08-01
https://github.com/arqex/react-datetime/issues/804
issue persists with latest version :(
yes, this issue still persists in the latest version. Is there any solution to solve this issue?
The issue still persists with the latest version, any updates? :(
Before:
After:
I am facing the same problem so I have checked and I found an issue in _updateDate
method of DateTime.js
file line number 349. There is something wrong with the moment after use of moment([2022,10,31] ) format it is working fine.
I am not sure whether it helps you or not, but it's working fine for me.
Thanks so much for sharing your solution! Unfortunately, this is still not working for me... I'll post my fix here if I could make it work!
Thanks so much for sharing your solution! Unfortunately, this is still not working for me... I'll post my fix here if I could make it work!
Hello @Macy6 Still facing the same problem and using onChange event for date update that time also need to do change for line no. 362 which I have marked in the attached image. This is work for me.
If you have already solved this issue with better solution, please share your solution.
Thanks so much for sharing your solution! Unfortunately, this is still not working for me... I'll post my fix here if I could make it work!
Hello @Macy6 Still facing the same problem and using onChange event for date update that time also need to do change for line no. 362 which I have marked in the attached image. This is work for me.
If you have already solved this issue with better solution, please share your solution.
Hey @UP1503, can confirm that your solution works for me! I really appreciate your help!! Happy New Year xD
@Macy6 is it working on your site ?
@Macy6 Can confirm that your force is perfect <3
I fork the repository and fix this issue. Try https://www.npmjs.com/package/@iftek/react-datetime