]> git.earman.xyz Git - sensor-watch.git/commitdiff
shorten time zone names
authorJoey Castillo <joeycastillo@utexas.edu>
Sat, 8 Mar 2025 21:14:03 +0000 (16:14 -0500)
committerJoey Castillo <joeycastillo@utexas.edu>
Sat, 8 Mar 2025 21:14:03 +0000 (16:14 -0500)
utz
watch-faces/clock/world_clock_face.c
watch-faces/settings/set_time_face.c

diff --git a/utz b/utz
index c33f6fe207cb4daeff0f12b8706c7bfdf8ab1408..24d8572fa0e2631d046aea5fe2197a8585a25c0c 160000 (submodule)
--- a/utz
+++ b/utz
@@ -1 +1 @@
-Subproject commit c33f6fe207cb4daeff0f12b8706c7bfdf8ab1408
+Subproject commit 24d8572fa0e2631d046aea5fe2197a8585a25c0c
index 4b819ee4c79cf12781757c8433f29016ff07bce6..2e8db394162ee9fe19e8286583ff5fe442900d0b 100644 (file)
@@ -169,7 +169,7 @@ static bool _world_clock_face_do_settings_mode(movement_event_t event, world_clo
     sprintf(buf, "%c%c  %s",
         movement_valid_position_0_chars[state->settings.bit.char_0],
         movement_valid_position_1_chars[state->settings.bit.char_1],
-        (char *) (3 + zone_names + 11 * state->settings.bit.timezone_index));
+        (char *) (zone_names + 8 * state->settings.bit.timezone_index));
     watch_clear_indicator(WATCH_INDICATOR_PM);
 
     // blink up the parameter we're setting
index 813d0b1af935400137fd6e4c7993349c3994f86e..c501956b0baf0a60d39fb6ab42c72db9d2a3201d 100644 (file)
@@ -140,7 +140,7 @@ bool set_time_face_loop(movement_event_t event, void *context) {
             sprintf(buf, "%2d%02d  ", hours % 100, minutes % 100);
             watch_set_colon();
         } else {
-            sprintf(buf, "%s", (char *) (3 + zone_names + 11 * movement_get_timezone_index()));
+            sprintf(buf, "%s", (char *) (zone_names + 8 * movement_get_timezone_index()));
             watch_clear_colon();
         }
     } else if (current_page < 4) {