kivy-garden / garden.circulardatetimepicker

Android-like date & time picker for Kivy
MIT License
14 stars 7 forks source link

Fix CircularMinutePicker returning 60 #6

Closed secnot closed 6 years ago

secnot commented 6 years ago

Sometimes the widget raises this exception when selecting 59 minutes.

../circulardatetimepicker/__init__.py", line 536, in _get_time return datetime.time(*self.time_list) ValueError: minute must be in 0..59

It is caused by CircularMInutePicker returning 60, the quick fix is to set its max to 59, it works and it's still possible to select 59 minutes.... but the source of the bug is CircularNumberPicker

tshirtman commented 6 years ago

Thank you!