Skip to content

Commit

Permalink
fix notes dt format
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolfomiranda committed Jul 27, 2024
1 parent 26f5364 commit 0fcac50
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/keri/app/notifying.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
keri.app.notifying module
"""
import datetime
from collections.abc import Iterable
from typing import Union, Type

Expand Down Expand Up @@ -71,7 +70,7 @@ def __init__(self, raw=b'', pad=None, note=None):
raise ValueError(f"invalid notice, missing attributes in {pad}")

if "dt" not in self._pad:
self._pad["dt"] = datetime.datetime.now().isoformat()
self._pad["dt"] = helping.nowIso8601()

@property
def datetime(self):
Expand Down Expand Up @@ -386,7 +385,7 @@ def add(self, attrs):
"""

note = notice(attrs, dt=datetime.datetime.now())
note = notice(attrs, dt=helping.nowIso8601())
cig = self.hby.signator.sign(ser=note.raw)
if self.noter.add(note, cig):
signal = dict(
Expand Down

0 comments on commit 0fcac50

Please sign in to comment.