]> git.earman.xyz Git - sensor-watch.git/commitdiff
Fix set_time_face erroneously setting the local time when changing timezone
authorAlessandro Genova <alessandro.genova@kitware.com>
Tue, 29 Jul 2025 04:27:16 +0000 (00:27 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Sun, 3 Aug 2025 17:21:35 +0000 (13:21 -0400)
watch-faces/settings/set_time_face.c

index 1bcf21239db3c12a54f6f3355445777959dab81a..63fc34fdfe2503342922697849964a75f93568f8 100644 (file)
@@ -44,7 +44,7 @@ static void _handle_alarm_button(watch_date_time_t date_time, uint8_t current_pa
             movement_set_timezone_index(movement_get_timezone_index() + 1);
             if (movement_get_timezone_index() >= NUM_ZONE_NAMES) movement_set_timezone_index(0);
             current_offset = movement_get_current_timezone_offset_for_zone(movement_get_timezone_index());
-            break;
+            return;
         case 0: // year
             date_time.unit.year = ((date_time.unit.year % 60) + 1);
             break;