From 279248f6c562eb88227d22b824c9324683980b96 Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Sat, 29 Jun 2013 18:11:19 +0200 Subject: [PATCH] time.timeZone: Set the TZ environment variable, which is used by Java. --- modules/config/timezone.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/config/timezone.nix b/modules/config/timezone.nix index b69df4a87ceb..81536725501f 100644 --- a/modules/config/timezone.nix +++ b/modules/config/timezone.nix @@ -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}";