From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2217 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: localtime() isn't local Date: Fri, 26 Oct 2012 18:25:53 +0200 Message-ID: <20121026162553.GH24157@port70.net> References: <20121026075736.GD16801@mahoro.ispfabriek.nl> <20121026081507.GF24157@port70.net> <20121026083405.GE16801@mahoro.ispfabriek.nl> <20121026120025.GG24157@port70.net> <20121026122636.GX254@brightrain.aerifal.cx> <20121026073720.06b2d225.idunham@lavabit.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1351268766 2181 80.91.229.3 (26 Oct 2012 16:26:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Oct 2012 16:26:06 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2218-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 26 18:26:15 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TRmje-0004gy-7b for gllmg-musl@plane.gmane.org; Fri, 26 Oct 2012 18:26:14 +0200 Original-Received: (qmail 3756 invoked by uid 550); 26 Oct 2012 16:26:06 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 3748 invoked from network); 26 Oct 2012 16:26:05 -0000 Content-Disposition: inline In-Reply-To: <20121026073720.06b2d225.idunham@lavabit.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2217 Archived-At: * Isaac Dunham [2012-10-26 07:37:20 -0700]: > FWIW, the last line in /etc/localtime seems in proper format for the TZ variable (that is, export TZ=`tail -n 1 /etc/localtime` should give you a valid POSIX timezone). I don't know why there's so much more cruft, and I've only checked with my timezone. > > Isaac Dunham that's not always true as the posix tz format cannot represent any timezone in my tzdata files these are counter examples: /usr/share/zoneinfo/Israel /usr/share/zoneinfo/Iran /usr/share/zoneinfo/America/Argentina/San_Luis /usr/share/zoneinfo/America/Santiago /usr/share/zoneinfo/Egypt /usr/share/zoneinfo/Chile/Continental /usr/share/zoneinfo/Chile/EasterIsland /usr/share/zoneinfo/Antarctica/Palmer