time.timeZone: Set the TZ environment variable, which is used by Java.

This commit is contained in:
Rickard Nilsson 2013-06-29 18:11:19 +02:00
parent d28b42658c
commit 279248f6c5

View file

@ -27,6 +27,7 @@ with pkgs.lib;
environment.shellInit =
''
export TZDIR=/etc/zoneinfo
export TZ=${config.time.timeZone}
'';
environment.etc.localtime.source = "${pkgs.tzdata}/share/zoneinfo/${config.time.timeZone}";