Time format setting no longer applies to terminal shell

Bug #1843426 reported by Frode Nordahl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Eoan Ermine (development branch)
Release: 19.10
Codename: eoan
$ dpkg -l |grep gnome-control-center
ii gnome-control-center 1:3.33.90-1ubuntu2 amd64 utilities to configure the GNOME desktop
ii gnome-control-center-data 1:3.33.90-1ubuntu2 all configuration applets for GNOME - data files
ii gnome-control-center-faces 1:3.33.90-1ubuntu2 all utilities to configure the GNOME desktop - faces images

After a recent change in Eoan, I believe it was glibc, the Time Format selector between 24-hour and 12-hour no longer applies to the terminal.

I would like my system to use the English language and English formats, but I do want it to adhere to my local custom of displaying the 24-hour clock.

Until recently this worked automatically, but now I have to manually set LC_TIME to ``C.UTF-8`` to get the desired effect.

While this may have been my responsibility all along the behavior did change recently.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hi. Me again. :)

AFAIK the Time Format selector (in Settings -> Details -> Date & Time) sets a dconf value which affects the clock in the top bar only. I just tested on 19.04, and can't find that it affects gnome-terminal at all.

It's possible that bug #1842256 affects you. To find out, can you please run these two commands:

cat /etc/default/locale

cat ~/.pam_environment

and show us the output here.

Changed in gnome-control-center (Ubuntu):
status: New → Incomplete
Revision history for this message
Frode Nordahl (fnordahl) wrote :

$ cat /etc/default/locale
LANG=en_US.UTF-8
LANGUAGE=en_US

$ cat .pam_environment
LANGUAGE DEFAULT=en
LANG DEFAULT=en_US.UTF-8
LC_NUMERIC DEFAULT=en_US.UTF-8
LC_TIME DEFAULT=en_US.UTF-8
LC_MONETARY DEFAULT=en_US.UTF-8
LC_PAPER DEFAULT=en_US.UTF-8
LC_NAME DEFAULT=en_US.UTF-8
LC_ADDRESS DEFAULT=en_US.UTF-8
LC_TELEPHONE DEFAULT=en_US.UTF-8
LC_MEASUREMENT DEFAULT=en_US.UTF-8
LC_IDENTIFICATION DEFAULT=en_US.UTF-8
PAPERSIZE DEFAULT=letter

hum, that could explain where the LANGUAGE=en came from when I looked around previously.

Would that affect clock output at all? I'll have a look.

Just wanted to note that I have not created the .pam_environment file and my system has gone through the loops of upgrading to Eoan from Bionic

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

It's en_US all over, and with your current settings you are not affected by the bug I mentioned.

~/.pam_environment is created automatically if/when you change Language or Formats in Settings -> Region & Language. It simply saves the specific settings for your user as opposed to the system wide settings in /etc/default/locale.

So my theory that bug #1842256 had confused you proved to be wrong, and we are back where we started: You claim that the Time Format selector previously affected the terminal, but I'm not able to confirm that.

Changed in gnome-control-center (Ubuntu):
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.