Date format in GNOME 40 panel clock

Tom H tomh0665 at gmail.com
Tue May 11 07:46:30 UTC 2021


On Mon, May 10, 2021 at 9:42 PM Bret Busby <bret at busby.net> wrote:
> On 11/5/21 1:50 am, Tom H wrote:
>> On Mon, May 10, 2021 at 2:23 PM Frank Vanoni
>> <mailinglist at linuxista.com> wrote:
>>> On Mon, 2021-05-10 at 12:18 +0200, Tom H wrote:
>>>>
>>>> Are you using the right locale?
>>>
>>> Yes! Time and date are displayed correctly in any application
>>> (Nautilus, Evolution, Calendar, etc.).
>>>
>>> It's just the panel clock on the top that ignores the locales.
>>
>> I have "United Kingdom" selected in the "Formats" section of
>> "Region and Language", and the date that's displayed in the top
>> bar is in UK format.
>>
>> If I set "LC_TIME=en_US.UTF-8" in "/etc/environment", the date
>> that's displayed in the top bar is in US format.
>>
>> If I unset "LC_TIME" in "/etc/environment" and select "United
>> States" in the "Formats" section of "Region and Language", the
>> date that's displayed in the top bar is in US format.
>
> Tue May 11 03:34:46 bret at bret-Aspire-5750G:~$cat /etc/environment
> PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
> Tue May 11 03:35:00 bret at bret-Aspire-5750G:~$
>
> My /etc/environment appears to not include that variable.

If you'd rather not add it to "/etc/environment", you can add it to
"/etc/default/locale". Both are used by "pam_env.so", in that order,
in Ubuntu's pam stack.




More information about the ubuntu-users mailing list