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/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'atuin-client/config.toml') diff --git a/atuin-client/config.toml b/atuin-client/config.toml index 1ddaa12e..faed994c 100644 --- a/atuin-client/config.toml +++ b/atuin-client/config.toml @@ -16,6 +16,12 @@ ## date format used, either "us" or "uk" # dialect = "us" +## default timezone to use when displaying time +## either "l", "local" to use the system's current local timezone, or an offset +## from UTC in the format of "<+|->H[H][:M[M][:S[S]]]" +## for example: "+9", "-05", "+03:30", "-01:23:45", etc. +# timezone = "local" + ## enable or disable automatic sync # auto_sync = true -- cgit v1.3.1