Skip to content

Date issue for month having 31 days #744

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

Open
SupriyaArora25 opened this issue Oct 12, 2020 · 7 comments
Open

Date issue for month having 31 days #744

SupriyaArora25 opened this issue Oct 12, 2020 · 7 comments

Comments

@SupriyaArora25
Copy link

SupriyaArora25 commented Oct 12, 2020

I'm Submitting a ...

[x] Bug report
[ ] Feature request
[ ] Support request

Steps to Reproduce

  1. On September 2020 month window select 31 Aug
  2. Date entered in text box is 1st August 2020.
  3. 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)

@technoknol
Copy link

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 )
	);

@technoknol
Copy link

@arqex your comments on this ? This looks like a critical bug.

@tlouth19
Copy link

tlouth19 commented Nov 3, 2020

This is a pretty critical bug - any update on it?

@tranhoanvo
Copy link

Hello ... Any update on this ?? I have pull @technoknol folk to try but I did not see any different

@GKustov
Copy link

GKustov commented Aug 9, 2021

Any updates?

@Macy6
Copy link

Macy6 commented Nov 10, 2022

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

@tinhtony2506
Copy link

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

the issue still persists with your force @Macy6, 31 February to January still error

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

7 participants