From 7368e073dc0add5480e56745672de97dc4940b62 Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Sun, 27 Jul 2025 23:34:49 +0200 Subject: [PATCH] =?UTF-8?q?[amazon-neptune]=C2=A0Fix=20date=20parsing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/amazon-neptune.py | 2 +- src/common/dates.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amazon-neptune.py b/src/amazon-neptune.py index b915c5a6..5cc84d1b 100644 --- a/src/amazon-neptune.py +++ b/src/amazon-neptune.py @@ -15,7 +15,7 @@ with ProductData(config.product) as product_data: version_match = config.first_match(version_str) if not version_match: - logging.warning(f"Skipping entry with malformed version: {entry}") + logging.warning(f"Skipping entry with malformed version: {version_str}") continue version = config.render(version_match) diff --git a/src/common/dates.py b/src/common/dates.py index d1238731..69da0bfb 100644 --- a/src/common/dates.py +++ b/src/common/dates.py @@ -54,7 +54,7 @@ def parse_datetime(text: str, formats: list[str] = frozenset([ "%Y-%m-%dT%H:%M:%S%z", # 2023-05-01T08:32:34+0900 "%Y-%m-%dT%H:%M:%S.%f%z", # 2023-05-01T08:32:34.123456Z "%Y/%m/%d %H:%M:%S", # 2023/05/01 08:32:34 - "%a, %d %b %Y %H:%M:%S %z", # Wed, 01 Jan 2020 00:00:00 GMT + "%a %d %b %Y %H:%M:%S %Z", # Wed 01 Jan 2020 00:00:00 GMT "%a %d %b %Y %H:%M:%S %z", # Wed 01 Jan 2020 00:00:00 -0400 "%Y%m%d%H%M%S", # 20230501083234 ]), to_utc: bool = True) -> datetime: