Skip to content

Commit

Permalink
Use strftime to create timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmavirus24 authored May 6, 2024
1 parent dd5396a commit 38fcd93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/betamax/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def add_urllib3_response(serialized, response, headers):


def timestamp():
stamp = datetime.now(timezone.utc).isoformat().split("+")[0]
stamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S")
try:
i = stamp.rindex('.')
except ValueError:
Expand Down

0 comments on commit 38fcd93

Please sign in to comment.