Permalink
Browse files

If the day number starts with 0, strip it

  • Loading branch information...
HazardSJ committed Aug 25, 2013
1 parent 0c8bf81 commit a82e2bdc03497c381bfbbf3eeee3c031cf52a41e
Showing with 1 addition and 1 deletion.
  1. +1 −1 citationstyle.py
View
@@ -171,7 +171,7 @@ def getArchiveDate(self):
if re.search(".*?web\.archive\.org/web/\d*/", archiveURL):
timestamp = re.compile(".*?web\.archive\.org/web/(?P<date>\d*)/.*").sub("\g<date>", archiveURL)
date = datetime.strptime(timestamp,'%Y%m%d%H%M%S')
self.template.add("archivedate", date.strftime("%d %B %Y"))
self.template.add("archivedate", (date.strftime("%d %B %Y")).lstrip("0"))
def run(self):
for category in self.categories:

0 comments on commit a82e2bd

Please sign in to comment.