From d8a5665871db104592d9c7271910c2df5640c834 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Thu, 9 May 2024 00:25:51 +0100 Subject: [PATCH] fix_: encryption.GetCurrentTime implementation --- protocol/encryption/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/encryption/helpers.go b/protocol/encryption/helpers.go index eb9ccab2f..c824ecf66 100644 --- a/protocol/encryption/helpers.go +++ b/protocol/encryption/helpers.go @@ -18,7 +18,7 @@ const keyBumpValue = uint64(10) // GetCurrentTime64 returns the current unix time in milliseconds func GetCurrentTime() uint64 { - return (uint64)(time.Now().UnixNano() / int64(time.Millisecond)) + return (uint64)(time.Now().UnixNano() / int64(time.Second)) } // bumpKeyID takes a timestampID and returns its value incremented by the keyBumpValue