Skip to content

Commit

Permalink
Minot cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
voloved committed Sep 8, 2024
1 parent 598e876 commit 5ae88e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions movement/movement.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 5ae88e4

Please sign in to comment.