fix(time): Try LC_TIME before LANG

This commit is contained in:
Joshua Megnauth 2024-09-01 13:25:20 +00:00 committed by GitHub
parent fb94abf73f
commit 4ae1a29b58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -478,7 +478,7 @@ fn timezone() -> Section<crate::pages::Message> {
}
fn locale() -> Result<Locale, Box<dyn std::error::Error>> {
let locale = std::env::var("LANG")?;
let locale = std::env::var("LC_TIME").or_else(|_| std::env::var("LANG"))?;
let locale = locale
.split('.')
.next()