fix: revert gameDate to local timezone and update DAG router test timing

The hardening pass incorrectly changed Game.gameDate to use UTC, which
broke timezone-dependent departure date calculations in ScenarioDPlanner.
Also widened the DAG router test's same-day game gap to account for the
new 3-hour game duration in canTransition.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-02-27 18:59:54 -06:00
parent c94e373e33
commit ce734b6c63
2 changed files with 5 additions and 4 deletions

View File

@@ -81,7 +81,7 @@ struct Game: Identifiable, Codable, Hashable {
}
var gameDate: Date {
dateTime.startOfDay(in: TimeZone(identifier: "UTC"))
Calendar.current.startOfDay(for: dateTime)
}
/// Alias for TripPlanningEngine compatibility