From ae2f280b674479eaf53138522797d781fc248735 Mon Sep 17 00:00:00 2001 From: Mathijs Kwik Date: Thu, 18 Apr 2013 14:22:59 +0200 Subject: [PATCH] cron: set TZDIR so cron is able to find the TZ --- modules/services/scheduling/cron.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/services/scheduling/cron.nix b/modules/services/scheduling/cron.nix index cf348793a65..9aa9213556d 100644 --- a/modules/services/scheduling/cron.nix +++ b/modules/services/scheduling/cron.nix @@ -91,7 +91,10 @@ in startOn = "startup"; # Needed to interpret times in the local timezone. - environment = { TZ = config.time.timeZone; }; + environment = { + TZ = config.time.timeZone; + TZDIR = "${pkgs.tzdata}/share/zoneinfo"; + }; path = [ cronNixosPkg ];