how to set LC_TIME in gnome?

poma pomidorabelisima at gmail.com
Fri Nov 28 20:17:09 UTC 2014


On 28.11.2014 19:34, Dr. Michael J. Chudobiak wrote:
> How can I set LC_TIME=en_DK.UTF-8 for all users, to get a sensible ISO 
> date format in most programs?
> 
> Setting /etc/locale.conf doesn't help:
> 
> [mjc at xena ~]$ more /etc/locale.conf
> LANG=en_US.UTF-8
> LC_TIME=en_DK.UTF-8
> 
> After rebooting, and launching a terminal in gnome-shell, LC_TIME is 
> stuck at en_US:
> 
> [mjc at xena ~]$ locale | grep LC_TIME
> LC_TIME="en_US.UTF-8"
> 

Dottore are you saying system wide settings doesn't apply to GNOME?

$ localectl set-locale LANG=en_US.UTF-8 LC_TIME=en_DK.UTF-8

$ localectl 
   System Locale: LANG=en_US.UTF-8
                  LC_TIME=en_DK.UTF-8
       VC Keymap: us
      X11 Layout: n/a

$ cat /etc/locale.conf 
LC_TIME=en_DK.UTF-8
LANG=en_US.UTF-8

$ man 1 localectl




More information about the users mailing list