From 0fcac50ded3eb9e5d3e9c66626443a23a46d11f0 Mon Sep 17 00:00:00 2001 From: Rodolfo Miranda Date: Sat, 27 Jul 2024 09:15:12 -0300 Subject: [PATCH] fix notes dt format --- src/keri/app/notifying.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/keri/app/notifying.py b/src/keri/app/notifying.py index 37128049d..a48adc61b 100644 --- a/src/keri/app/notifying.py +++ b/src/keri/app/notifying.py @@ -3,7 +3,6 @@ keri.app.notifying module """ -import datetime from collections.abc import Iterable from typing import Union, Type @@ -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): @@ -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(