Skip to content

Commit

Permalink
fix timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
elsholz committed Jan 15, 2024
1 parent 0b155d5 commit fd770ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/code/metroplanner_api/v1/endpoints/_plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def get_plan(
time_to_get = now - timedelta(hours=hour)
time_to_hour = time_to_get.isoformat().split(":")[0]

ts = int(time_to_get.timestamp()) * 1000
ts = int(time_to_get.timestamp() * 1000)

# ts_hour = int(
# datetime(*time_to_get.timetuple()[:4]).timestamp()
Expand Down

0 comments on commit fd770ad

Please sign in to comment.