From 78b56113016c3ad7c7d882f7fc2fd98499832f17 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 30 Nov 2022 17:36:51 +0100 Subject: [PATCH] default timestamp --- cashu/mint/crud.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cashu/mint/crud.py b/cashu/mint/crud.py index 06ed9ee..313dace 100644 --- a/cashu/mint/crud.py +++ b/cashu/mint/crud.py @@ -169,9 +169,9 @@ async def store_keyset( ( keyset.id, keyset.derivation_path, - keyset.valid_from or int(time.time()), - keyset.valid_to or int(time.time()), - keyset.first_seen or int(time.time()), + keyset.valid_from or db.timestamp_now, + keyset.valid_to or db.timestamp_now, + keyset.first_seen or db.timestamp_now, True, keyset.version, ),