From a3e4879800247cd6f83d0dd1eb2739f17b3be528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hermann=20H=C3=B6hne?= Date: Wed, 24 Jul 2024 00:23:53 +0200 Subject: [PATCH] In purple, timestamp unit is seconds, not milliseconds. --- src/rust/src/core.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/src/core.rs b/src/rust/src/core.rs index 1fa6189..384077d 100755 --- a/src/rust/src/core.rs +++ b/src/rust/src/core.rs @@ -149,7 +149,7 @@ async fn run( let mut manager = manager.expect("manager must be loaded"); // prepare a PurplePresage message for providing feed-back (send success or error) let mut msg = crate::bridge::Presage::from_account(account); - msg.timestamp = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap().as_millis() as u64; + msg.timestamp = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap().as_secs() as u64; match recipient { crate::structs::Recipient::Contact(uuid) => { msg.who = std::ffi::CString::new(uuid.to_string()).unwrap().into_raw();