From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5022 Path: news.gmane.org!not-for-mail From: Josiah Worcester Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: ctime, timezone? Date: Thu, 1 May 2014 17:18:32 -0500 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11347bc2a3084604f85e0b96 X-Trace: ger.gmane.org 1398982732 9247 80.91.229.3 (1 May 2014 22:18:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2014 22:18:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5026-gllmg-musl=m.gmane.org@lists.openwall.com Fri May 02 00:18:45 2014 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 1WfzJU-0003mH-S9 for gllmg-musl@plane.gmane.org; Fri, 02 May 2014 00:18:44 +0200 Original-Received: (qmail 13882 invoked by uid 550); 1 May 2014 22:18:44 -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 13874 invoked from network); 1 May 2014 22:18:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AMDzoXJG8r39K+gWJ6SAiNDrT0+ofwA2h8CnxXZ4W1Y=; b=HsPvIiD1J4VVIE0WvLFi/RDiPSvbByjDhUllrf7+nsnh9Vmy7qlGxqVEf52zIkaao5 aj+2owdesKqZ1fWOpJAVunwzgx1MpaBUK1jz+i3Vfsifmz3cPVifvZROw92WoBR6NPA3 P8kxzjI91LOtK3DCHOHGyBQu9hWSThFVCjF2xxbCZveXNkSmxA4qqMoB9mEO8j/jtmGe l4kHa9mE1VCaoymBVX/9WI5yDC6+QQBYhKaDmh+baG4XTaigs84mmv8Ht58xeUdkTa6T eZ2XusAjAWSgcVYfCapexfRoO+uxpjx3zZXAHrNq1GIFyyUWYcCwcKkldQ8LTZS+waYx gSyA== X-Received: by 10.180.219.75 with SMTP id pm11mr87892wic.8.1398982712688; Thu, 01 May 2014 15:18:32 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:5022 Archived-At: --001a11347bc2a3084604f85e0b96 Content-Type: text/plain; charset=UTF-8 On Thu, May 1, 2014 at 5:00 PM, John Mudd wrote: > Hmm, I'd like to install my app at 4,000 locations around the country. Can > I avoid explicitly setting $TZ? > > With unpatched musl, not really. In the do_tzset function in __tz.c, I think changing the "if (!s || !*s) s = __gmt;" to simply "if (!s || !*s) s = "/etc/localtime";" should do it, though I wouldn't say for sure without testing. If you simply don't want to have to deal with manually setting TZ to match the /etc/localtime definition everywhere, TZ=/etc/localtime should suffice. --001a11347bc2a3084604f85e0b96 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= hu, May 1, 2014 at 5:00 PM, John Mudd <johnbmudd@gmail.com> wrote:
Hmm, I&#= 39;d like to install my app at 4,000 locations around the country. Can I av= oid explicitly setting $TZ?


With unpatched = musl, not really. In the do_tzset function in __tz.c, I think changing the<= br>"if (!s || !*s) s =3D __gmt;" to simply "if (!s || !*s) s= =3D "/etc/localtime";" should do it, though I wouldn't = say for sure without testing.
If you simply don't want to have to deal with manually setti= ng TZ to match the /etc/localtime definition everywhere, TZ=3D/etc/localtim= e should suffice.
--001a11347bc2a3084604f85e0b96--