[Nix-dev] should libc depend on tzdata

Eelco Dolstra eelco.dolstra at logicblox.com
Tue Apr 29 15:43:08 CEST 2014


Hi,

On 29/04/14 15:25, Mihaly Barasz wrote:

> Lately I've been paying more attention to the time zone handling in
> Nix and I realized something that strikes me as weird. I've been
> bumping into this before, but didn't pay much attention. The issue is
> the following:
> 
> To get proper time zone handling in Nix/NixOS you _have to_ have the
> TZDIR environment variable set.

You only need $TZDIR if you also set $TZ, which NixOS doesn't do. If $TZ is not
set, then Glibc will use /etc/localtime, which is a symlink to the appropriate
zone info file.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list