[philomena] fix 'date' values without UTC offset (#6921)

Some instances do not include a UTC offset or 'Z' in their datetime
values, e.g. 2024-03-14T13:46:46 compared to 2024-03-14T13:46:46Z
This commit is contained in:
Mike Fährmann
2025-02-02 16:32:28 +01:00
parent 1a9138f25e
commit 4ab9237f1d

View File

@@ -34,7 +34,8 @@ class PhilomenaExtractor(BooruExtractor):
@staticmethod
def _prepare(post):
post["date"] = text.parse_datetime(post["created_at"])
post["date"] = text.parse_datetime(
post["created_at"][:19], "%Y-%m-%dT%H:%M:%S")
BASE_PATTERN = PhilomenaExtractor.update({