Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Aug 2009 15:08:16 -0700
From:      "Peter Steele" <psteele@webmail.maxiscale.com>
To:        <freebsd-hackers@freebsd.org>
Subject:   RE: How to signal a time zone change?
Message-ID:  <B8A480488C0C6849826655761349EA431F7175@owa.webmail.maxiscale.com>
References:  <B8A480488C0C6849826655761349EA431F716A@owa.webmail.maxiscale.com> <4A7C9738.10103@elischer.org> <B8A480488C0C6849826655761349EA431F7171@owa.webmail.maxiscale.com> <eaec67500908071423v95b7214t30a48ad3d75c3cd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>What's the value of the TZ environment variable for the C apps? You may
need to have them read the new value from somewhere, and then rerun
tzset().

The default value of the TZ environment variable is null. I just tried
passing the explicitly time zone value to the C app and setting TZ to
that value and that seemed to work. I would think that that I should be
able to retrieve that value from /etc/localtime as the docs imply. Guess
not. If I have to pass the time zone to the C app, then I guess that's
what I'll do...

=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B8A480488C0C6849826655761349EA431F7175>