Remove padding from date strings
The padding is removed by using %-d instead of %e or %d. Examples: "%B %d %Y" -> "October 04 2018" "%B %e %Y" -> "October 4 2018" "%B %-d %Y" -> "October 4 2018" https://gitlab.gnome.org/GNOME/gnome-shell/issues/666
This commit is contained in:

committed by
Florian Müllner

parent
cff9eaf5aa
commit
0f542c2e16
@ -73,7 +73,7 @@ var TodayButton = new Lang.Class({
|
||||
* "Tue 9:29 AM"). The string itself should become a full date, e.g.,
|
||||
* "February 17 2015".
|
||||
*/
|
||||
let dateFormat = Shell.util_translate_time_string (N_("%B %e %Y"));
|
||||
let dateFormat = Shell.util_translate_time_string (N_("%B %-d %Y"));
|
||||
this._dateLabel.set_text(date.toLocaleFormat(dateFormat));
|
||||
|
||||
/* Translators: This is the accessible name of the date button shown
|
||||
|
Reference in New Issue
Block a user