[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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user