Fix regression: time stamp test suite failures

This commit is contained in:
James R. Barlow
2018-04-17 16:59:21 -07:00
parent 076363d78e
commit 1a516b2af9
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -143,6 +143,7 @@ def decode_pdf_date(s: str) -> datetime:
if s.startswith('D:'):
s = s[2:]
s = s.replace("'", "") # Remove apos from PDF time strings
for fmt in pdfmark_date_fmts:
try:
return datetime.strptime(s, fmt)