[dt] replace 'text.parse_datetime()' & 'text.parse_timestamp()'
This commit is contained in:
@@ -42,7 +42,7 @@ class WarosuThreadExtractor(Extractor):
|
||||
if "image" in post:
|
||||
for key in ("w", "h", "no", "time", "tim"):
|
||||
post[key] = text.parse_int(post[key])
|
||||
dt = text.parse_timestamp(post["time"])
|
||||
dt = self.parse_timestamp(post["time"])
|
||||
# avoid zero-padding 'day' with %d
|
||||
post["now"] = dt.strftime(f"%a, %b {dt.day}, %Y %H:%M:%S")
|
||||
post.update(data)
|
||||
|
||||
Reference in New Issue
Block a user