refactor remaining uses of movement_timezone_offsets to movement_get_current_timezone_offset

This commit is contained in:
joeycastillo
2024-09-29 09:20:14 -04:00
parent 677872434d
commit f315744cc3
19 changed files with 27 additions and 27 deletions

View File

@@ -158,7 +158,7 @@ static void totp_generate_and_display(totp_state_t *totp_state) {
}
static inline uint32_t totp_compute_base_timestamp(movement_settings_t *settings) {
return watch_utility_date_time_to_unix_time(watch_rtc_get_date_time(), movement_timezone_offsets[settings->bit.time_zone] * 60);
return watch_utility_date_time_to_unix_time(watch_rtc_get_date_time(), movement_get_current_timezone_offset());
}
void totp_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {