feat: add --timezone-local CLI option

This commit is contained in:
ThetaDev 2025-01-25 01:17:06 +01:00
parent d408bf0ff8
commit b082dd4740

View file

@ -59,6 +59,9 @@ struct Cli {
#[cfg(feature = "timezone")]
#[clap(long, global = true)]
timezone: Option<String>,
/// 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 {