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

This commit is contained in:
steven committed 2026-01-11 20:50:08 -07:00
1 parent c94f2d8bb5
commit 123f3432ee
2 files changed
+22 -1

No files matched your search

+4
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 (?, ?, ?, ?, ?, ?, ?, ?)