From 4ab9237f1dcfe42269d1b4d2b12784c0cb2402e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 2 Feb 2025 16:32:28 +0100 Subject: [PATCH] [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 --- gallery_dl/extractor/philomena.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/philomena.py b/gallery_dl/extractor/philomena.py index 1b67272a..547ef2c8 100644 --- a/gallery_dl/extractor/philomena.py +++ b/gallery_dl/extractor/philomena.py @@ -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({