react-datetime
react-datetime copied to clipboard
Date issue for month having 31 days
I'm Submitting a ...
[x] Bug report
[ ] Feature request
[ ] Support request
Steps to Reproduce
- On September 2020 month window select 31 Aug
- Date entered in text box is 1st August 2020.
- Same is happening for 31 Jan, 31 Mar, 31 May.
Expected Results
Expected date should be the one which is selected.
Actual Results
This is occurring for months having 31 days, except July.
Minimal Reproduction of the Problem
Other Information (e.g. stacktraces, related issues, suggestions how to fix)
I've found out that this is causing issue due to moment behavior. If you try to set more number of days than in actual month, it will return next month's date.
This lines below causing issue in DateTime.js
// Set the value into day/month/year
viewDate[ this.viewToMethod[currentView] ](
parseInt( e.target.getAttribute('data-value'), 10 )
);
@arqex your comments on this ? This looks like a critical bug.
This is a pretty critical bug - any update on it?
Hello ... Any update on this ?? I have pull @technoknol folk to try but I did not see any different
Any updates?
The issue still persists with the latest version, any updates? :(
The issue still persists with the latest version, any updates? :(
the issue still persists with your force @Macy6, 31 February to January still error