From c0e55fabc35d8b74aca6a2e6b2a4e58c82eb20a3 Mon Sep 17 00:00:00 2001 From: Jacob Bieker Date: Fri, 8 Dec 2023 12:15:34 +0000 Subject: [PATCH] Fix time issue --- satip/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/satip/app.py b/satip/app.py index ac31a8f2..88448ffc 100644 --- a/satip/app.py +++ b/satip/app.py @@ -151,8 +151,8 @@ def run( log.info(f"Fetching datasets for {start_date} - {start_time}", memory=utils.get_memory()) datasets = download_manager.identify_available_datasets( - start_date=start_date.strftime("%Y-%m-%d-%H-%M-%S"), - end_date=pd.Timestamp(start_time, tz="UTC").strftime("%Y-%m-%d-%H-%M-%S"), + start_date=start_date.strftime("%Y-%m-%d-%H:%M:%S"), + end_date=pd.Timestamp(start_time, tz="UTC").strftime("%Y-%m-%d-%H:%M:%S"), ) # Check if any RSS imagery is available, if not, fall back to 15 minutely data if (len(datasets) == 0) or use_backup: @@ -162,8 +162,8 @@ def run( memory=utils.get_memory(), ) datasets = download_manager.identify_available_datasets( - start_date=start_date.strftime("%Y-%m-%d-%H-%M-%S"), - end_date=pd.Timestamp(start_time, tz="UTC").strftime("%Y-%m-%d-%H-%M-%S"), + start_date=start_date.strftime("%Y-%m-%d-%H:%M:%S"), + end_date=pd.Timestamp(start_time, tz="UTC").strftime("%Y-%m-%d-%H:%M:%S"), product_id="EO:EUM:DAT:MSG:HRSEVIRI", ) use_backup = True