<div dir="ltr">Hi,<div><br></div><div>I added this line in /etc/environment since a long time :  </div><div><br></div><div><div>TZ="Europe/Paris"</div></div><div><br></div><div>It gives me satisfaction.</div><div><br></div><div>With this line, upon reboot, I have :  </div><div><br></div><div><div>~$ echo $TZ</div><div>Europe/Paris</div></div><div><br></div><div>Without TZ doesn't exist.</div><div><br></div><div>G.</div><div>PS: You don't have to live in Paris for this to work, I guess. </div><div>It should work with whatever lines in 'timedatectl list-timezones'</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-24 22:19 GMT+01:00 Andrew Martin <span dir="ltr"><<a href="mailto:amartin@xes-inc.com" target="_blank">amartin@xes-inc.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I recently saw this blog post regarding performance when the TZ environment<br>
variable is not set:<br>
<a href="https://blog.packagecloud.io/eng/2017/02/21/set-environment-variable-save-thousands-of-system-calls/" rel="noreferrer" target="_blank">https://blog.packagecloud.io/<wbr>eng/2017/02/21/set-<wbr>environment-variable-save-<wbr>thousands-of-system-calls/</a><br>
<br>
I have noticed this problem when stracing running daemons on my systems and<br>
would like to fix it. I reviewed the official Ubuntu documentation for where to<br>
define environment variables:<br>
<a href="https://help.ubuntu.com/community/EnvironmentVariables" rel="noreferrer" target="_blank">https://help.ubuntu.com/<wbr>community/EnvironmentVariables</a><br>
<br>
I tried defining TZ in /etc/environment and in /etc/profile.d/test.sh, but I<br>
cannot get this environment variable to be available in all cases (e.g. if I<br>
just execute bash without --login or if I run the sample c program provided in<br>
the above article). How can I make the TZ environment variable defined<br>
completely system-wide?<br>
<br>
Thanks,<br>
<br>
Andrew<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Ubuntu-devel-discuss mailing list<br>
<a href="mailto:Ubuntu-devel-discuss@lists.ubuntu.com">Ubuntu-devel-discuss@lists.<wbr>ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/ubuntu-devel-<wbr>discuss</a><br>
</font></span></blockquote></div><br></div>