diff --git a/komorebic/src/main.rs b/komorebic/src/main.rs index 847e688b..833317d7 100644 --- a/komorebic/src/main.rs +++ b/komorebic/src/main.rs @@ -1,7 +1,7 @@ #![warn(clippy::all)] #![allow(clippy::missing_errors_doc, clippy::doc_markdown)] -use chrono::Local; +use chrono::Utc; use std::fs::File; use std::fs::OpenOptions; use std::io::BufRead; @@ -1474,7 +1474,7 @@ fn main() -> Result<()> { } } SubCommand::Log => { - let timestamp = Local::now().format("%Y-%m-%d").to_string(); + let timestamp = Utc::now().format("%Y-%m-%d").to_string(); let color_log = std::env::temp_dir().join(format!("komorebi.log.{timestamp}")); let file = TailedFile::new(File::open(color_log)?); let locked = file.lock();