Skip to content

Commit a6aab83

Browse files
author
Ask Solem
committed
Better date parsing (still not good enough, have to find out how to parse the timezone, anyone?)
1 parent 433206f commit a6aab83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github2/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def ghdate_to_datetime(github_date):
8-
date_without_tz = github_date.rsplit("-")[0].strip()
8+
date_without_tz = " ".join(github_date.strip().split()[:2])
99
return datetime.strptime(date_without_tz, GITHUB_DATE_FORMAT)
1010

1111

0 commit comments

Comments
 (0)