Skip to content
Snippets Groups Projects
Commit 0d8114c9 authored by GyDi's avatar GyDi
Browse files

fix: change log file format

parent f714b30e
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ use crate::utils::{app_home_dir, app_resources_dir};
/// initialize this instance's log file
fn init_log(log_dir: &PathBuf) {
let local_time = Local::now().format("%Y-%m-%d_%H:%M:%S").to_string();
let local_time = Local::now().format("%Y-%m-%d-%H%M%S").to_string();
let log_file = format!("{}.log", local_time);
let log_file = log_dir.join(log_file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment