Skip to content

Commit 4ae1a29

Browse files
fix(time): Try LC_TIME before LANG
1 parent fb94abf commit 4ae1a29

File tree

1 file changed

+1
-1
lines changed
  • cosmic-settings/src/pages/time

1 file changed

+1
-1
lines changed

cosmic-settings/src/pages/time/date.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ fn timezone() -> Section<crate::pages::Message> {
478478
}
479479

480480
fn locale() -> Result<Locale, Box<dyn std::error::Error>> {
481-
let locale = std::env::var("LANG")?;
481+
let locale = std::env::var("LC_TIME").or_else(|_| std::env::var("LANG"))?;
482482
let locale = locale
483483
.split('.')
484484
.next()

0 commit comments

Comments
 (0)