diff options
| author | sigoden <sigoden@gmail.com> | 2024-08-30 20:00:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-30 20:00:07 +0800 |
| commit | d8d52b60d6dba47a0c318e68172e2d28e5351385 (patch) | |
| tree | e67fd41faa1eaea83d8956754b3bffb1ea07d466 /src/config/agent.rs | |
| parent | 4bbf4796169e2840b59dc29cbc6fb36e7959d24d (diff) | |
| download | aichat-d8d52b60d6dba47a0c318e68172e2d28e5351385.tar.gz | |
feat: save temp session with `temp-<timestamp>` if `save_session: true` (#811)
Diffstat (limited to 'src/config/agent.rs')
| -rw-r--r-- | src/config/agent.rs | 9 |
1 files changed, 1 insertions, 8 deletions
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() |
