feat: add --timezone-local CLI option

This commit is contained in:
ThetaDev 2025-01-25 01:17:06 +01:00
parent a5a7be5b4e
commit 4f2bb47ab4
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6

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 {