From 5ae88e438d79bcdb6e18f58aa165d4cf9ef6f87f Mon Sep 17 00:00:00 2001 From: David Volovskiy Date: Sun, 8 Sep 2024 10:50:09 -0400 Subject: [PATCH] Minot cleanup --- movement/movement.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/movement/movement.c b/movement/movement.c index ebd831f..60e9106 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -457,8 +457,7 @@ uint8_t movement_claim_backup_register(void) { } int16_t get_timezone_offset(uint8_t timezone_idx, watch_date_time date_time) { - if (!movement_state.settings.bit.dst_active) return movement_timezone_offsets[timezone_idx]; - if (dst_occurring(date_time)) + if (movement_state.settings.bit.dst_active && dst_occurring(date_time)) return movement_timezone_dst_offsets[timezone_idx]; return movement_timezone_offsets[timezone_idx]; }