Skip to content

Conversation

@jason-simmons
Copy link
Member

Fixes #10541

@jason-simmons
Copy link
Member Author

@Hixie

Copy link
Contributor

Choose a reason for hiding this comment

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

this is entirely up to you but i would be tempted to make _kDaysInMonth[1] have the value -1, and then make _daysInMonth return 29 if isLeapYear is true and 28 otherwise. That way anyone tempted to use _kDaysInMonth would immediately find that they'd forgotten about leap years. Also maybe add a comment next to _kDaysInMonth pointing to _daysInMonth.

@Hixie
Copy link
Contributor

Hixie commented Jun 20, 2017

Needs tests, then LGTM.

@jason-simmons
Copy link
Member Author

done - PTAL

@Hixie
Copy link
Contributor

Hixie commented Jun 20, 2017

LGTM

@jason-simmons jason-simmons merged commit 2052741 into flutter:master Jun 20, 2017
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jul 1, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

October does not have 31 days in datepicker on iOS

3 participants