[dt] replace 'text.parse_datetime()' & 'text.parse_timestamp()'
This commit is contained in:
@@ -75,7 +75,7 @@ class WikimediaExtractor(BaseExtractor):
|
||||
for m in image["commonmetadata"] or ()}
|
||||
|
||||
text.nameext_from_url(image["canonicaltitle"].partition(":")[2], image)
|
||||
image["date"] = text.parse_datetime(
|
||||
image["date"] = self.parse_datetime(
|
||||
image["timestamp"], "%Y-%m-%dT%H:%M:%SZ")
|
||||
|
||||
def items(self):
|
||||
|
||||
Reference in New Issue
Block a user