Skip to content

Commit

Permalink
In purple, timestamp unit is seconds, not milliseconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
hoehermann committed Jul 23, 2024
1 parent 856f62a commit a3e4879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ async fn run<C: presage::store::Store + 'static>(
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();
Expand Down

0 comments on commit a3e4879

Please sign in to comment.