From 8047cb67fe10fe780775a34ea48e7d358444edd3 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 16 Jan 2024 15:05:59 +0000 Subject: [PATCH] Bug fix for data from space launch API --- agenda/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenda/data.py b/agenda/data.py index 473c3c2..7c3f04c 100644 --- a/agenda/data.py +++ b/agenda/data.py @@ -354,7 +354,7 @@ async def get_data( dt = None if launch["net_precision"] == "Day": - dt = datetime.strptime(launch["net"], "%Y-%m-%dT00:00:00Z").date() + dt = datetime.strptime(launch["net"], "%Y-%m-%dT%H:%M:%SZ").date() elif launch["t0_time"]: dt = pytz.utc.localize( datetime.strptime(launch["net"], "%Y-%m-%dT%H:%M:%SZ")