]> git.earman.xyz Git - sensor-watch.git/commitdiff
fix timezone / unix time conversion bug
authorWesley Ellis <tahnok@gmail.com>
Sat, 7 Mar 2026 21:53:35 +0000 (16:53 -0500)
committerWesley Ellis <tahnok@gmail.com>
Sat, 7 Mar 2026 21:53:35 +0000 (16:53 -0500)
watch-faces/complication/tomato_face.c

index 5729bdd79937378d290829ebe0508384c919e059..321e5deadbd2ade657633570879a7cfbfc23d58c 100644 (file)
@@ -45,7 +45,7 @@ static void tomato_start(tomato_state_t *state) {
     state->mode = tomato_run;
     state->now_ts = movement_get_utc_timestamp();
     state->target_ts = watch_utility_offset_timestamp(state->now_ts, 0, length, 0);
-    watch_date_time_t target_dt = watch_utility_date_time_from_unix_time(state->target_ts, movement_get_current_timezone_offset());
+    watch_date_time_t target_dt = watch_utility_date_time_from_unix_time(state->target_ts, 0);
     movement_schedule_background_task_for_face(state->watch_face_index, target_dt);
     watch_set_indicator(WATCH_INDICATOR_BELL);
 }