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/util/denominations.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/util/denominations.ts')
-rw-r--r-- | packages/taler-wallet-core/src/util/denominations.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/util/denominations.ts b/packages/taler-wallet-core/src/util/denominations.ts index 5cc57bdab..ecf8c5671 100644 --- a/packages/taler-wallet-core/src/util/denominations.ts +++ b/packages/taler-wallet-core/src/util/denominations.ts @@ -326,7 +326,7 @@ export function createTimeline<Type extends object>( fee: Amounts.stringify(fee), group, id, - moment: AbsoluteTime.fromTimestamp(stampStart), + moment: AbsoluteTime.fromProtocolTimestamp(stampStart), denom, }); ps.push({ @@ -334,7 +334,7 @@ export function createTimeline<Type extends object>( fee: Amounts.stringify(fee), group, id, - moment: AbsoluteTime.fromTimestamp(stampEnd), + moment: AbsoluteTime.fromProtocolTimestamp(stampEnd), denom, }); return ps; @@ -457,8 +457,8 @@ export function isWithdrawableDenom( denomselAllowLate?: boolean, ): boolean { const now = AbsoluteTime.now(); - const start = AbsoluteTime.fromTimestamp(d.stampStart); - const withdrawExpire = AbsoluteTime.fromTimestamp(d.stampExpireWithdraw); + const start = AbsoluteTime.fromProtocolTimestamp(d.stampStart); + const withdrawExpire = AbsoluteTime.fromProtocolTimestamp(d.stampExpireWithdraw); const started = AbsoluteTime.cmp(now, start) >= 0; let lastPossibleWithdraw: AbsoluteTime; if (denomselAllowLate) { |