diff options
author | joeycastillo <joeycastillo@utexas.edu> | 2023-08-27 17:53:17 -0400 |
---|---|---|
committer | joeycastillo <joeycastillo@utexas.edu> | 2023-08-27 17:53:17 -0400 |
commit | 7fd51caa25681c43173be77075c268cede87efb6 (patch) | |
tree | 861dd3898fd59930e77dbcb8fc5040fd308bbc71 | |
parent | e4ad0e5567782015dbccdbc15ab26b67da3ef56e (diff) | |
download | Sensor-Watch-7fd51caa25681c43173be77075c268cede87efb6.tar.gz Sensor-Watch-7fd51caa25681c43173be77075c268cede87efb6.tar.bz2 Sensor-Watch-7fd51caa25681c43173be77075c268cede87efb6.zip |
support years through 2080
-rw-r--r-- | movement/watch_faces/settings/set_time_face.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/movement/watch_faces/settings/set_time_face.c b/movement/watch_faces/settings/set_time_face.c index 61913430..84a4d18c 100644 --- a/movement/watch_faces/settings/set_time_face.c +++ b/movement/watch_faces/settings/set_time_face.c @@ -46,8 +46,7 @@ static void _handle_alarm_button(movement_settings_t *settings, watch_date_time date_time.unit.second = 0; break; case 3: // year - // only allow 2021-2030. fix this sometime next decade - date_time.unit.year = ((date_time.unit.year % 10) + 1); + date_time.unit.year = ((date_time.unit.year % 60) + 1); break; case 4: // month date_time.unit.month = (date_time.unit.month % 12) + 1; |