From fd770ad856cf473babf5d2a73e827e36c2403834 Mon Sep 17 00:00:00 2001 From: elsholz Date: Mon, 15 Jan 2024 23:54:23 +0100 Subject: [PATCH] fix timestamp --- api/code/metroplanner_api/v1/endpoints/_plans.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/code/metroplanner_api/v1/endpoints/_plans.py b/api/code/metroplanner_api/v1/endpoints/_plans.py index 2c8c0ba..8ebc710 100644 --- a/api/code/metroplanner_api/v1/endpoints/_plans.py +++ b/api/code/metroplanner_api/v1/endpoints/_plans.py @@ -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()