From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 7 22:02:40 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DF82106566B for ; Fri, 7 Aug 2009 22:02:40 +0000 (UTC) (envelope-from psteele@webmail.maxiscale.com) Received: from k2smtpout02-01.prod.mesa1.secureserver.net (k2smtpout02-01.prod.mesa1.secureserver.net [64.202.189.90]) by mx1.freebsd.org (Postfix) with SMTP id 435438FC0A for ; Fri, 7 Aug 2009 22:02:39 +0000 (UTC) Received: (qmail 29619 invoked from network); 7 Aug 2009 22:02:39 -0000 Received: from unknown (HELO owa.webmail.maxiscale.com) (72.167.52.135) by k2smtpout02-01.prod.mesa1.secureserver.net (64.202.189.90) with ESMTP; 07 Aug 2009 22:02:39 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Fri, 7 Aug 2009 15:08:16 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to signal a time zone change? Thread-Index: AcoXph/GqNTPNP7zSx+NKsjIee2nlwABBC/g References: <4A7C9738.10103@elischer.org> From: "Peter Steele" To: X-Mailman-Approved-At: Fri, 07 Aug 2009 22:07:35 +0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: RE: How to signal a time zone change? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2009 22:02:41 -0000 >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