Minot cleanup

This commit is contained in:
David Volovskiy 2024-09-08 10:50:09 -04:00
parent 598e876186
commit 5ae88e438d

View file

@ -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) { 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 (movement_state.settings.bit.dst_active && dst_occurring(date_time))
if (dst_occurring(date_time))
return movement_timezone_dst_offsets[timezone_idx]; return movement_timezone_dst_offsets[timezone_idx];
return movement_timezone_offsets[timezone_idx]; return movement_timezone_offsets[timezone_idx];
} }