Skip to content

Commit

Permalink
Fix date-only properties
Browse files Browse the repository at this point in the history
  • Loading branch information
evertheylen committed Jan 31, 2019
1 parent 25060da commit efe3ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notion/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _parse_datetime(cls, date_str, time_str):
if time_str:
return datetime.strptime(date_str + " " + time_str, '%Y-%m-%d %H:%M')
else:
return date.strptime(date_str, '%Y-%m-%d')
return datetime.strptime(date_str, '%Y-%m-%d').date()

def _format_datetime(self, date_or_datetime):
if not date_or_datetime:
Expand Down

0 comments on commit efe3ab3

Please sign in to comment.