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 #804

Open
NamPhan29117 opened this issue Sep 8, 2021 · 10 comments · May be fixed by #805
Open

Select wrong date 31/08 v3.1.1 #804

NamPhan29117 opened this issue Sep 8, 2021 · 10 comments · May be fixed by #805

Comments

@NamPhan29117
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

@katesroad
Copy link

I'm having the same issue for my application.

@ShaiGilboa
Copy link

issue persists with latest version :(

@VAKHULA
Copy link

VAKHULA commented Mar 1, 2022

the same issue for
select date 2022-02-01
then set date 2022-01-31
the date input shows 2022-01-03
"react-datetime": "3.1.1"

@rxviperx
Copy link

rxviperx commented Apr 1, 2022

Please help and fix this, no idea how to fix this my side here

the same issue for
select date 2022-04-01
then set date 2022-03-31
the date input shows 2022-03-01
"react-datetime": "3.1.1"

@iantbarker
Copy link

iantbarker commented Jun 1, 2022

I thought I was going crazy for June. Calendar is set to June 1st, open and select May 31st, date comes back as May 1st. Here is a console.log of what is returning on the onChange. Using 3.1.1 as well.

Screen Shot 2022-05-31 at 8 06 41 AM

@hrhrsdn
Copy link

hrhrsdn commented Jun 21, 2022

This is because, date is set before month which does not have day 31 in the implementation. changing the set order in code worked for me.
image

@Macy6
Copy link

Macy6 commented Nov 10, 2022

This is because, date is set before month which does not have day 31 in the implementation. changing the set order in code worked for me. image

Where to write this code to solve the issue

This code is in DateTime.js: #744 (comment)

@Macy6
Copy link

Macy6 commented Nov 10, 2022

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

@tinhtony2506
Copy link

@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

Successfully merging a pull request may close this issue.

10 participants