From 099afe66ecfb569a8a04b66425ded29665e6a37c Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sat, 13 Feb 2021 19:37:00 +0000 Subject: Implement history import --- src/local/history.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/local/history.rs') diff --git a/src/local/history.rs b/src/local/history.rs index 3c9a9069..00109621 100644 --- a/src/local/history.rs +++ b/src/local/history.rs @@ -12,10 +12,10 @@ pub struct History { } impl History { - pub fn new(command: String, cwd: String, exit: i64, duration: i64) -> History { + pub fn new(timestamp: i64, command: String, cwd: String, exit: i64, duration: i64) -> History { History { id: Uuid::new_v4().to_simple().to_string(), - timestamp: chrono::Utc::now().timestamp_millis(), + timestamp, command, cwd, exit, -- cgit v1.3.1