Skip to content

Commit

Permalink
fix: no milliseconds in proof created (take 2)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <[email protected]>
  • Loading branch information
dbluhm committed Dec 7, 2023
1 parent 773f806 commit d489877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async def create_proof(
date = self.date or datetime.now(timezone.utc)
if not date.tzinfo:
date = utc.localize(date)
proof["created"] = date.isoformat()
proof["created"] = date.isoformat(timespec="seconds")

# Allow purpose to update the proof; the `proof` is in the
# SECURITY_CONTEXT_URL `@context` -- therefore the `purpose` must
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async def create_proof(
date = self.date or datetime.now(timezone.utc)
if not date.tzinfo:
date = utc.localize(date)
proof["created"] = date.isoformat()
proof["created"] = date.isoformat(timespec="seconds")

# Allow purpose to update the proof; the `proof` is in the
# SECURITY_CONTEXT_URL `@context` -- therefore the `purpose` must
Expand Down

0 comments on commit d489877

Please sign in to comment.