Add info on database timezone configuration during application init
All checks were successful
pedestrian-simulator / build (push) Successful in 1m0s
All checks were successful
pedestrian-simulator / build (push) Successful in 1m0s
This commit is contained in:
@@ -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 (?, ?, ?, ?, ?, ?, ?, ?)
|
||||
|
||||
Reference in New Issue
Block a user