Add info on database timezone configuration during application init
All checks were successful
pedestrian-simulator / build (push) Successful in 1m0s

This commit is contained in:
2026-01-11 20:50:08 -07:00
parent c94f2d8bb5
commit 123f3432ee
2 changed files with 22 additions and 1 deletions

View File

@@ -93,6 +93,10 @@ func (sm *StepManager) SaveTripState() {
}
func (sm *StepManager) saveTripStateLocked() {
fmt.Printf("[StepManager] Saving trip state for %s: StartTime=%v (%s), LastSync=%v (%s)\n",
sm.userID, sm.tripState.StartTime, sm.tripState.StartTime.Location(),
sm.lastSyncTime, sm.lastSyncTime.Location())
_, err := db.Exec(`
INSERT INTO trips (user_id, start_date, start_time, start_day_initial_steps, previous_total_steps, target_total_steps, last_sync_time, next_sync_time)
VALUES (?, ?, ?, ?, ?, ?, ?, ?)