From e84a4819bdf62563ef25769764c2837f35082d54 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Sat, 9 Nov 2024 23:48:02 +0100 Subject: [PATCH] Make sure all timestamps remain consistent with one another Please see the comment on #217 that explains in more detail why this change needs to be reverted in order to keep timestamps consistent. --- lib/src/core/comms/secure_channel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/core/comms/secure_channel.rs b/lib/src/core/comms/secure_channel.rs index 87905ff77..cee7bfd1e 100644 --- a/lib/src/core/comms/secure_channel.rs +++ b/lib/src/core/comms/secure_channel.rs @@ -176,7 +176,7 @@ impl SecureChannel { pub fn set_security_token(&mut self, channel_token: ChannelSecurityToken) { self.secure_channel_id = channel_token.channel_id; self.token_id = channel_token.token_id; - self.token_created_at = DateTime::now(); + self.token_created_at = channel_token.created_at; self.token_lifetime = channel_token.revised_lifetime; }