Skip to content

Ensure that the day is inside a valid range when month change#119

Open
kvpt wants to merge 1 commit into
lilcodelab:masterfrom
kvpt:fix_month_change
Open

Ensure that the day is inside a valid range when month change#119
kvpt wants to merge 1 commit into
lilcodelab:masterfrom
kvpt:fix_month_change

Conversation

@kvpt

@kvpt kvpt commented Feb 1, 2022

Copy link
Copy Markdown
Contributor

When only the month is changed and that the current date is end of month, like 31 January to February. It can generate an out of range date resulting in an app crash.
Ensure that the day is not greater than the last day of the new month before creating the date.

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 this pull request may close these issues.

1 participant