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

Select wrong date 31/08 v3.1.1 #844

Open
tinhtony2506 opened this issue Sep 6, 2022 · 10 comments
Open

Select wrong date 31/08 v3.1.1 #844

tinhtony2506 opened this issue Sep 6, 2022 · 10 comments

Comments

@tinhtony2506
Copy link

"react-datetime": "3.1.1"

select date 2021-09-01
then set date 2021-08-31
the date input shows 2021-08-01

@tinhtony2506
Copy link
Author

#804

@tinhtony2506
Copy link
Author

issue persists with latest version :(

@bhavinzwt
Copy link

yes, this issue still persists in the latest version.
Is there any solution to solve this issue?

@Macy6
Copy link

Macy6 commented Nov 10, 2022

The issue still persists with the latest version, any updates? :(

@UP1503
Copy link

UP1503 commented Nov 11, 2022

Before:

image

After:

image

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.

@Macy6
Copy link

Macy6 commented Nov 14, 2022

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!

@UP1503
Copy link

UP1503 commented Jan 3, 2023

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!

image

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.

@Macy6
Copy link

Macy6 commented Jan 4, 2023

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!

image

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

@tinhtony2506
Copy link
Author

@Macy6 is it working on your site ?

@tinhtony2506
Copy link
Author

@Macy6 Can confirm that your force is perfect <3

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

No branches or pull requests

4 participants