Skip to content

Commit

Permalink
Fix: Remove superluous ":" from iso8601 timestamp (#39)
Browse files Browse the repository at this point in the history
Introduced in 6b86097 (Aug 23, 2015)

Spec:
- https://en.wikipedia.org/wiki/ISO_8601
  • Loading branch information
glensc committed Feb 9, 2024
2 parents 45badb2 + 11d5ce8 commit 7259527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trakt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def now():

def timestamp(date_object):
"""Generate a trakt formatted timestamp from the given date object"""
fmt = '%Y-%m-%d:T%H:%M:%S.000Z'
fmt = '%Y-%m-%dT%H:%M:%S.000Z'
return date_object.strftime(fmt)


Expand Down

0 comments on commit 7259527

Please sign in to comment.