support _format on clock time label (#344)

use _display as format string directly
remove log message

update docs
This commit is contained in:
Tayou
2026-01-08 10:50:49 +01:00
committed by GitHub
parent e9230f6f9f
commit 76f328a16e
2 changed files with 2 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ For more, refer to: `wayvrctl panel-modify --help`
Clock labels are driven by the current time, adhering to the user's 12/24 hour setting as well as timezone settings.
Available display values are: `name` (timezone name), `time`, `date`, `dow`
Available display values are: `name` (timezone name), `time`, `date`, `dow` or a custom [format string](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) like `%H:%M:%S`.
See the Custom Timezones section for more info on timezones. Skip `_timezone` to use local time.

View File

@@ -98,8 +98,7 @@ pub(super) fn setup_custom_label<S: 'static>(
}
}
unk => {
log::warn!("Unknown display value for clock label source: {unk}");
return;
unk
}
};