[tz] zdump issues

Zefram zefram at fysh.org
Mon Oct 24 20:03:33 UTC 2011


Thom Hehl wrote:
>Problem is when I run zdump it never seems to return anything different.

The argument to zdump isn't a filename, it's a $TZ setting.  If your
host system doesn't have the Olson tzfiles installed then you won't get
interesting data from Olson zone names, because by default zdump will look
for the file in the system zoneinfo directory.  Unfortunately the failure
mode when the file isn't found is uninformative.  However, it should work
if you give an *absolute* pathname to a tzfile, because that's one of
the accepted forms of $TZ.  E.g., "./zdump $PWD/tzdir/America/Anchorage".

-zefram



More information about the tz mailing list