Date format in GNOME 40 panel clock

Bret Busby bret.busby at gmail.com
Mon May 17 20:16:35 UTC 2021


On 18/05/2021, Bret Busby <bret.busby at gmail.com> wrote:
> On 11/05/2021, Tom H <tomh0665 at gmail.com> wrote:
>> 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.
>>
>
> So, what happens when the OS apparently ignorers the settings?
>
> "
> Tue May 18 04:10:23 bret at bret-Aspire-V3-772:~$locale
> LANG=en_AU.UTF-8
> LANGUAGE=en_AU:en
> LC_CTYPE="en_AU.UTF-8"
> LC_NUMERIC="en_AU.UTF-8"
> LC_TIME="en_AU.UTF-8"
> LC_COLLATE="en_AU.UTF-8"
> LC_MONETARY="en_AU.UTF-8"
> LC_MESSAGES="en_AU.UTF-8"
> LC_PAPER="en_AU.UTF-8"
> LC_NAME="en_AU.UTF-8"
> LC_ADDRESS="en_AU.UTF-8"
> LC_TELEPHONE="en_AU.UTF-8"
> LC_MEASUREMENT="en_AU.UTF-8"
> LC_IDENTIFICATION="en_AU.UTF-8"
> LC_ALL=
> Tue May 18 04:10:31 bret at bret-Aspire-V3-772:~$
> "
>
> LC_TIME shows as being
> LC_TIME="en_AU.UTF-8"
>
> The date format as shown in the prompt, is USA.
>
> How do I get non-USA date format?
>
>

Apologies for not having trimmed the signature in my last previous post.

Frustration got the better of me, and, I forgot to trim my signature
before sending.

-- 
Bret Busby
Armadale
West Australia
(UTC+0800)
..............




More information about the ubuntu-users mailing list