From 318bdd895590c97dd53f8d3661d76fa1c0cd67a0 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Tue, 6 Feb 2024 23:34:03 +0800 Subject: Add timezone configuration option & CLI overrides (#1517) * Allow specifying a timezone in history search/list * Fix clippy complaints * Add a bit more comment on supporting named timezones * Add rudimentary tests * Ditch local timezone test * Timezone configuration support * Set default timezone to `local` * `--tz` -> `--timezone` `--tz` is kept as a visible alias --- atuin-client/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'atuin-client/Cargo.toml') diff --git a/atuin-client/Cargo.toml b/atuin-client/Cargo.toml index e224ad83..991c594e 100644 --- a/atuin-client/Cargo.toml +++ b/atuin-client/Cargo.toml @@ -22,7 +22,7 @@ atuin-common = { path = "../atuin-common", version = "17.2.1" } log = { workspace = true } base64 = { workspace = true } -time = { workspace = true } +time = { workspace = true, features = ["macros", "formatting"] } clap = { workspace = true } eyre = { workspace = true } directories = { workspace = true } @@ -53,6 +53,7 @@ thiserror = { workspace = true } futures = "0.3" crypto_secretbox = "0.1.1" generic-array = { version = "0.14", features = ["serde"] } +serde_with = "3.5.1" # encryption rusty_paseto = { version = "0.6.0", default-features = false } -- cgit v1.3.1