]> git.earman.xyz Git - sensor-watch.git/commitdiff
support years through 2080
authorjoeycastillo <joeycastillo@utexas.edu>
Sun, 27 Aug 2023 21:53:17 +0000 (17:53 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sun, 27 Aug 2023 21:53:17 +0000 (17:53 -0400)
movement/watch_faces/settings/set_time_face.c

index 61913430a7367c4ada87b1ce85e5269d4110f267..84a4d18c13b4896955b773b79d9cd4668fda8dc5 100644 (file)
@@ -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;