fix(time): Try LC_TIME before LANG
This commit is contained in:
parent
fb94abf73f
commit
4ae1a29b58
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue