Skip to content

Commit

Permalink
If the day number starts with 0, strip it
Browse files Browse the repository at this point in the history
  • Loading branch information
HazardSJ committed Aug 25, 2013
1 parent 0c8bf81 commit a82e2bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion citationstyle.py
Expand Up @@ -171,7 +171,7 @@ def getArchiveDate(self):
if re.search(".*?web\.archive\.org/web/\d*/", archiveURL): if re.search(".*?web\.archive\.org/web/\d*/", archiveURL):
timestamp = re.compile(".*?web\.archive\.org/web/(?P<date>\d*)/.*").sub("\g<date>", 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') 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): def run(self):
for category in self.categories: for category in self.categories:
Expand Down

0 comments on commit a82e2bd

Please sign in to comment.