improv(time): use medium fieldset in horizontal
It seems ICU changed the behavior of `long()`, so it displayed in the panel as e.g. `December 11 at 13:00` instead of `December 11, 13:00`. It now displays as `Dec 11, 13:00`, making it more compact and matching GNOME.
This commit is contained in:
parent
08c7157555
commit
588afe5a9d
1 changed files with 2 additions and 2 deletions
|
|
@ -262,7 +262,7 @@ impl Window {
|
|||
|
||||
if self.config.show_date_in_top_panel {
|
||||
if self.config.show_weekday {
|
||||
let mut fs = fieldsets::MDET::long();
|
||||
let mut fs = fieldsets::MDET::medium();
|
||||
if !self.config.show_seconds {
|
||||
fs = fs.with_time_precision(TimePrecision::Minute);
|
||||
}
|
||||
|
|
@ -271,7 +271,7 @@ impl Window {
|
|||
.format(&datetime)
|
||||
.to_string()
|
||||
} else {
|
||||
let mut fs = fieldsets::MDT::long();
|
||||
let mut fs = fieldsets::MDT::medium();
|
||||
if !self.config.show_seconds {
|
||||
fs = fs.with_time_precision(TimePrecision::Minute);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue