Bug fix for data from space launch API
This commit is contained in:
parent
2a1e2429d7
commit
8047cb67fe
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue