mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
When the selected date is in the end month, the UTC timestamp of it will be larger than the end month's, which cause us incorrectly treat the selected date as invalid. Fixes the logic by consistently use Month as the time unit to do comparison. Resolves https://github.com/material-components/material-components-android/issues/2101 PiperOrigin-RevId: 381280448