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 authored and fblackburn1 committed Jan 16, 2025
1 parent 5acf53c commit 86a50af
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 86a50af

Please sign in to comment.