From 77e6fc59087f30adb4c56697eb1a60dd1e49b239 Mon Sep 17 00:00:00 2001 From: Joshua Megnauth <48846352+joshuamegnauth54@users.noreply.github.com> Date: Sun, 1 Sep 2024 13:30:20 +0000 Subject: [PATCH] fix(time): Try LC_TIME before LANG --- cosmic-applet-time/src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosmic-applet-time/src/window.rs b/cosmic-applet-time/src/window.rs index e26d20cf..1906b939 100644 --- a/cosmic-applet-time/src/window.rs +++ b/cosmic-applet-time/src/window.rs @@ -114,7 +114,7 @@ impl cosmic::Application for Window { _flags: Self::Flags, ) -> (Self, cosmic::iced::Command>) { fn get_local() -> Result> { - let locale = std::env::var("LANG")?; + let locale = std::env::var("LC_TIME").or_else(|_| std::env::var("LANG"))?; let locale = locale .split('.') .next()