diff options
Diffstat (limited to 'src/local/history.rs')
-rw-r--r-- | src/local/history.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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, |