From 4f2bb47ab42ae0c68a64f3b3c2831fa7850b6f56 Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Sat, 25 Jan 2025 01:17:06 +0100 Subject: [PATCH] feat: add --timezone-local CLI option --- cli/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cli/src/main.rs b/cli/src/main.rs index 68ff919..1940ed0 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -59,6 +59,9 @@ struct Cli { #[cfg(feature = "timezone")] #[clap(long, global = true)] timezone: Option, + /// Use local timezone + #[clap(long, global = true)] + timezone_local: bool, /// Use authentication #[clap(long, global = true)] auth: bool, @@ -917,6 +920,9 @@ async fn run() -> anyhow::Result<()> { if let Some(botguard_bin) = cli.botguard_bin { rp = rp.botguard_bin(botguard_bin); } + if cli.timezone_local { + rp = rp.timezone_local(); + } #[cfg(feature = "timezone")] if let Some(timezone) = cli.timezone {