<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 28 November 2014 at 20:34, Dr. Michael J. Chudobiak <span dir="ltr">&lt;<a href="mailto:mjc@avtechpulse.com" target="_blank">mjc@avtechpulse.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">How can I set LC_TIME=en_DK.UTF-8 for all users, to get a sensible ISO date format in most programs?<br>
<br>
Setting /etc/locale.conf doesn&#39;t help:<br>
<br>
[mjc@xena ~]$ more /etc/locale.conf<br>
LANG=en_US.UTF-8<br>
LC_TIME=en_DK.UTF-8<br>
<br>
After rebooting, and launching a terminal in gnome-shell, LC_TIME is stuck at en_US:<br>
<br>
[mjc@xena ~]$ locale | grep LC_TIME<br>
LC_TIME=&quot;en_US.UTF-8&quot;<span><font color="#888888"><br></font></span></blockquote><div><br></div><div>IIUC, GNOME overrides the system-wide locale settings with it own values, by default it&#39;s en_US.utf-8; there are two bits that affect the locale settings in &quot;gnome-control-center -&gt; Region &amp; Language&quot;, Language and &quot;Formats&quot;; LC_TIME is affected by the &quot;Formats&quot; setting, which sets the value of the gsettings key &#39;org.gnome.system.locale region&#39; (note that the same value is set for LC_NUMERIC, LC_TIME, LC_MONETARY, LC_PAPER, LC_MEASUREMENT).<br><br></div><div>You can change the default for all users using the following steps:<br></div><div>- Create /usr/share/glib-2.0/schemas/org.gnome.system.locale.gschema.override and put this in it:<br>[org.gnome.system.locale]<br>region=&#39;en_DK.utf8&#39;<br><br></div><div>- As root execute:<br>/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas<br><br></div><div>that&#39;s it, this should affect any newly created user account; and also any existing user account where the user hasn&#39;t manually set the value of the &#39;org.gnome.system.locale region&#39; key; of course setting the value of this key manually will override the default value that you&#39;ve just set via org.gnome.system.locale.gschema.override.<br><br></div></div></div></div>