Skip to content

Commit

Permalink
fix normalization of ingestion date
Browse files Browse the repository at this point in the history
  • Loading branch information
ninsbl authored Dec 13, 2024
1 parent 1693e5b commit 7f02d0a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/imagery/i.eodag/i.eodag.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,11 +879,7 @@ def skip_existing(output, search_result):
if scene_file.exists():
creation_time = datetime.utcfromtimestamp(os.path.getctime(scene_file))
ingestion_time = scene.properties.get("modificationDate")
if (
ingestion_time
and datetime.fromisoformat(ingestion_time).replace(tzinfo=None)
<= creation_time
):
if normalize_time(ingestion_time) <= creation_time:
# This is to check that the file was completely downloaded
# without interruptions.
# The reason this works:
Expand Down

0 comments on commit 7f02d0a

Please sign in to comment.