Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
Use strftime() instead of isoformat(), to discard the microseconds part.
Browse files Browse the repository at this point in the history
  • Loading branch information
lefcha committed Jun 2, 2015
1 parent 501fff5 commit 5f04a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion todoist/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def _post(self, call, url=None, **kwargs):
def _json_serializer(self, obj):
import datetime
if isinstance(obj, datetime.datetime):
return obj.isoformat()
return obj.strftime('%Y-%m-%dT%H:%M:%S')

# Sync
def generate_uuid(self):
Expand Down

0 comments on commit 5f04a48

Please sign in to comment.