-
Notifications
You must be signed in to change notification settings - Fork 266
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
September has 31 days when it should have 30 #40
Comments
Probably doing something wrong with the month number as js has the base habit of describing months from 0 to 11, and not 1 to 12 |
All days are right-shifted one month (e. g., March has 28 days on 2019). I search through _getBody() method on js/calendar.js. Lines 489-450 have the following code: var d = new Date(this.year, this.month, 0),
monthLength = d.getDate(); In that case, monthLength has the number of days of this.month - 1, that's why everything is shifted (just adding a one will cause other things to crash, though 😅 ). |
So calls calculating monthLength should take this into consideration. |
I did not check other months.
The text was updated successfully, but these errors were encountered: