diff options
author | Florian Dold <florian@dold.me> | 2023-05-26 12:19:32 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-05-26 12:19:32 +0200 |
commit | cd8f76db61f4a1ab1a8a8a4d29b2f3e863b59854 (patch) | |
tree | 423ed7c6fc42ec5e05f655eb093b3b4bdc885996 /packages/taler-wallet-core/src/operations/backup/export.ts | |
parent | 557dcec30db6573c5d11ca26432008ac6621642e (diff) | |
download | wallet-core-cd8f76db61f4a1ab1a8a8a4d29b2f3e863b59854.tar.xz |
taler-util,wallet-core: implement TalerPreciseTimestamp
Fixes #7703
Diffstat (limited to 'packages/taler-wallet-core/src/operations/backup/export.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/backup/export.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/backup/export.ts b/packages/taler-wallet-core/src/operations/backup/export.ts index 7b245a4eb..ff5f1e177 100644 --- a/packages/taler-wallet-core/src/operations/backup/export.ts +++ b/packages/taler-wallet-core/src/operations/backup/export.ts @@ -62,6 +62,7 @@ import { Logger, stringToBytes, WalletBackupContentV1, + TalerPreciseTimestamp, } from "@gnu-taler/taler-util"; import { CoinSourceType, @@ -521,7 +522,7 @@ export async function exportBackup( }); }); - const ts = AbsoluteTime.toTimestamp(AbsoluteTime.now()); + const ts = TalerPreciseTimestamp.now(); if (!bs.lastBackupTimestamp) { bs.lastBackupTimestamp = ts; @@ -565,7 +566,7 @@ export async function exportBackup( bs.lastBackupNonce = encodeCrock(getRandomBytes(32)); logger.trace( `setting timestamp to ${AbsoluteTime.toIsoString( - AbsoluteTime.fromTimestamp(ts), + AbsoluteTime.fromPreciseTimestamp(ts), )} and nonce to ${bs.lastBackupNonce}`, ); await tx.config.put({ |