time.timeZone: Set the TZ environment variable, which is used by Java.
This commit is contained in:
parent
d28b42658c
commit
279248f6c5
|
@ -27,6 +27,7 @@ with pkgs.lib;
|
||||||
environment.shellInit =
|
environment.shellInit =
|
||||||
''
|
''
|
||||||
export TZDIR=/etc/zoneinfo
|
export TZDIR=/etc/zoneinfo
|
||||||
|
export TZ=${config.time.timeZone}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.etc.localtime.source = "${pkgs.tzdata}/share/zoneinfo/${config.time.timeZone}";
|
environment.etc.localtime.source = "${pkgs.tzdata}/share/zoneinfo/${config.time.timeZone}";
|
||||||
|
|
Loading…
Reference in New Issue