Skip to content

Commit

Permalink
fix strptime call bug
Browse files Browse the repository at this point in the history
  • Loading branch information
egpbos committed Jul 31, 2024
1 parent 21005a8 commit b59a9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litstudy/sources/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def publication_date(self):

for fmt in formats:
try:
return datetime.strptime(text, fmt)
return datetime.datetime.strptime(text, fmt)
except Exception:
pass

Expand Down

0 comments on commit b59a9ad

Please sign in to comment.