From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2212 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 10:15:07 +0200 Message-ID: <20121026081507.GF24157@port70.net> References: <20121026075736.GD16801@mahoro.ispfabriek.nl> 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 1351239318 29475 80.91.229.3 (26 Oct 2012 08:15:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Oct 2012 08:15:18 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2213-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 26 10:15:27 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 1TRf4h-0005nj-52 for gllmg-musl@plane.gmane.org; Fri, 26 Oct 2012 10:15:27 +0200 Original-Received: (qmail 28216 invoked by uid 550); 26 Oct 2012 08:15:19 -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 28208 invoked from network); 26 Oct 2012 08:15:19 -0000 Content-Disposition: inline In-Reply-To: <20121026075736.GD16801@mahoro.ispfabriek.nl> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:2212 Archived-At: * Yoran Heling [2012-10-26 09:57:37 +0200]: > $ musl-gcc localtime.c -o localtime-musl > $ gcc localtime.c -o localtime-glibc > $ ./localtime-musl > Local: 07:53:47 > Global: 07:53:47 > $ ./localtime-glibc > Local: 09:53:50 > Global: 07:53:50 > $ date > Fri Oct 26 09:53:51 CEST 2012 > what is the TZ environment variable? that's the only method localtime (and tzset) should support in posix to determine the timezone you may want to try TZ=CEST ./localtime-musl