Skip to content

Commit

Permalink
format the utc timestamps to remove the +00.00
Browse files Browse the repository at this point in the history
.isoformat() add the tz offset to the timestamp when the datetime object
is tz aware. Having this information is nice but it breaks the API :(
  • Loading branch information
pc-m committed Nov 21, 2024
1 parent d152df7 commit 5117c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wazo_auth/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _format_local_time(t):
def _format_utc_time(t):
if not t:
return None
return datetime.fromtimestamp(t, timezone.utc).isoformat()
return datetime.fromtimestamp(t, timezone.utc).strftime('%Y-%m-%dT%H:%M:%S.%f')

def to_dict(self):
result = {
Expand Down

0 comments on commit 5117c9d

Please sign in to comment.