Skip to content

Commit

Permalink
feat: show time in current locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Jan 28, 2025
1 parent 8af9da9 commit 50ad904
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 1 deletion.
64 changes: 64 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion lala_bar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ futures-util.workspace = true
serde.workspace = true

zbus.workspace = true
tracing-subscriber = { version = "0.3.19", features = ["std", "env-filter"] }
tracing-subscriber = { version = "0.3.19", features = [
"std",
"env-filter",
"fmt",
"local-time",
] }
anyhow = "1.0.95"
alsa = "0.9.1"

Expand Down
2 changes: 2 additions & 0 deletions lala_bar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ use notify::NotifyUnitWidgetInfo;

pub fn main() -> Result<(), iced_layershell::Error> {
use tracing_subscriber::filter::LevelFilter;
use tracing_subscriber::fmt::time::LocalTime;
tracing_subscriber::fmt()
.with_env_filter(
tracing_subscriber::filter::EnvFilter::builder()
.with_default_directive(LevelFilter::INFO.into())
.from_env_lossy()
.add_directive("usvg=off".parse().unwrap()),
)
.with_timer(LocalTime::rfc_3339())
.init();
music_bar::run_lalabar()
}
Expand Down

0 comments on commit 50ad904

Please sign in to comment.