Try LC_TIME before LANG for time localization
This commit is contained in:
parent
d923efa5de
commit
0c7280ab01
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,8 @@ pub static LANGUAGE_SORTER: Lazy<Collator> = Lazy::new(|| {
|
|||
});
|
||||
|
||||
pub static LANGUAGE_CHRONO: Lazy<chrono::Locale> = Lazy::new(|| {
|
||||
std::env::var("LANG")
|
||||
std::env::var("LC_TIME")
|
||||
.or_else(|_| std::env::var("LANG"))
|
||||
.ok()
|
||||
.and_then(|locale_full| {
|
||||
// Split LANG because it may be set to a locale such as en_US.UTF8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue