From 51d4e47e0b1776a221381dab71b02dea4b6b7297 Mon Sep 17 00:00:00 2001 From: Archit Date: Mon, 3 Jun 2024 06:54:09 +0800 Subject: [PATCH] Fixes server time offset --- packages/storage-layer-torus/src/TorusStorageLayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/storage-layer-torus/src/TorusStorageLayer.ts b/packages/storage-layer-torus/src/TorusStorageLayer.ts index ca0f1c493..6bc04eb5e 100644 --- a/packages/storage-layer-torus/src/TorusStorageLayer.ts +++ b/packages/storage-layer-torus/src/TorusStorageLayer.ts @@ -172,7 +172,7 @@ class TorusStorageLayer implements IStorageLayer { let namespace = "tkey"; const setTKeyStore = { data: message, - timestamp: new BN(~~((this.serverTimeOffset + Date.now()) / 1000)).toString(16), + timestamp: new BN(~~(this.serverTimeOffset + Date.now() / 1000)).toString(16), }; // Overwrite bulk_set to allow deleting nonce v2 together with creating tKey.