From d8d52b60d6dba47a0c318e68172e2d28e5351385 Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 30 Aug 2024 20:00:07 +0800 Subject: feat: save temp session with `temp-` if `save_session: true` (#811) --- src/config/agent.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/config/agent.rs') diff --git a/src/config/agent.rs b/src/config/agent.rs index 25e128c..bf4ef54 100644 --- a/src/config/agent.rs +++ b/src/config/agent.rs @@ -420,14 +420,7 @@ fn builtin_variables() -> Vec<(&'static str, String)> { ("__arch__", env::consts::ARCH.to_string()), ("__shell__", SHELL.name.clone()), ("__locale__", sys_locale::get_locale().unwrap_or_default()), - ( - "__now__", - time::OffsetDateTime::now_utc() - .format(simplelog::format_description!( - "[year]-[month]-[day]T[hour]:[minute]:[second].[subsecond digits:3]Z" - )) - .unwrap_or_default(), - ), + ("__now__", now()), ( "__cwd__", env::current_dir() -- cgit v1.2.3