Skip to content

Commit

Permalink
[philomena] fix 'date' values without UTC offset (#6921)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mikf committed Feb 2, 2025
1 parent 1a9138f commit 4ab9237
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gallery_dl/extractor/philomena.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def _file_url(self, post):

@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({
Expand Down

0 comments on commit 4ab9237

Please sign in to comment.