Date extension does not honor the locale format selected in the Welcome Screen
Reported as wb:9114268489f64c859f67bc46670c3e8d, reproduced.
If I choose Formats = United Kingdom in the Welcome Screen:
- I get
LC_TIME=en_GB.UTF-8
in a terminal, and if I rundate
there it's displayed inen_GB
format. Good. - I get
LC_TIME=en_GB.UTF-8
in a terminal +sudo su -
, so far so good.- If I run
date
there it's displayed inen_GB
format. Good. - If I run
/usr/local/lib/tails-get-date
there (that's the command used by our date extension), it's displayed in US format. fail
- If I run
- The date displayed in the top bar by our GNOME Shell date extension is in US format. fail
It seems that's because tails-get-date
uses the hard-coded date_format = '%a %b %-e %R'
.
Not a big deal but let's at least track this here :)
(Side-note: this makes me suppose that the code that we have above to honor LC_TIME
is a no-op.)