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

[Master] Fix examples, Throttle tests and export dependency types from Sku #2026

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

MSNev
Copy link
Collaborator

@MSNev MSNev commented Mar 29, 2023

No description provided.

let dayOfMonth = date.getDate();
if (dayOfMonth > (daysInMonth[month - 1] + (month === 2 ? (isLeapYear(year - 1) ? 1 : 0 ) : 0 ))) {
date.setDate(daysInMonth[month - 1] + (month === 2 ? (isLeapYear(year - 1) ? 1 : 0 ) : 0 ));
}
date.setUTCMonth(month-1);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests started failing today because Feb 29, 30, 31 don't exist 😄 . So just simple test fixes to set to the last day of the previous month as the same issue would occur for Oct, Dec, May, Jul 31st.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Nev❤️

@MSNev MSNev added this to the 2.8.12 milestone Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants