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, ),