From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5019 Path: news.gmane.org!not-for-mail From: Josiah Worcester Newsgroups: gmane.linux.lib.musl.general Subject: Re: ctime, timezone? Date: Thu, 1 May 2014 16:57: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=001a11347bc28aa26004f85dc0e3 X-Trace: ger.gmane.org 1398981473 20248 80.91.229.3 (1 May 2014 21:57:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2014 21:57:53 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5023-gllmg-musl=m.gmane.org@lists.openwall.com Thu May 01 23:57:46 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 1WfyzB-0003zx-GO for gllmg-musl@plane.gmane.org; Thu, 01 May 2014 23:57:45 +0200 Original-Received: (qmail 1385 invoked by uid 550); 1 May 2014 21:57: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 1377 invoked from network); 1 May 2014 21:57: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=XwyVMF6qbMDwDmwcibmDuwC8uod/TMzY6QvOmBABtFc=; b=sWRzDA6mUhuxDKmS7FdY6LdG73gj0YqfwmXk9F6BnEn0C6c/CfuUyYyLNhAO/v7Vl3 PUlhSxN43v/4ZgOGAm0M4JjlD11GAoOwDwlN3d4KNnNXfxWfQnRbZaqfUceRjdncrJkh 91ufeuRZwuIgRH47MtM03YUkMzvSDRDp8olBeYIw2rZIWp3asv89WFJifrLeh8XY01Pv X7samjoWQo3cQGoObjpJBE6eLZkLkiMCXAkAVzU0R3zfqu7HMjOYbCrfZdvJ9PYDC4vc TYDGxUf1xEAPXFC81KA5ojzuigFVhXPt8QJKYGKPbJJrfbslMyvhO2zzpw47ygsqBaft j8cA== X-Received: by 10.180.219.75 with SMTP id pm11mr33240wic.8.1398981452798; Thu, 01 May 2014 14:57:32 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:5019 Archived-At: --001a11347bc28aa26004f85dc0e3 Content-Type: text/plain; charset=UTF-8 On Thu, May 1, 2014 at 3:56 PM, Josiah Worcester wrote: > It looks as though glibc and musl have different ideas of what the > timezone is. Could you print out the contents of the $TZ variable, and if > /etc/localtime is a symlink, could you tell us where that points to? > > Ah. Quick look at the musl source makes it clear what's going on. musl does not look at /etc/localtime for the time zone. If TZ is unset it defaults to UTC. Try export TZ=your-zoneinfo-timezone. (relatedly, it is possibly desirable to have the timezone code examine /etc/localtime) --001a11347bc28aa26004f85dc0e3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= hu, May 1, 2014 at 3:56 PM, Josiah Worcester <josiahw@gmail.com> wrote:
=
It looks as though glibc and musl have diff= erent ideas of what the timezone is. Could you print out the contents of th= e $TZ variable, and if /etc/localtime is a symlink, could you tell us where= that points to?


Ah. Quick look= at the musl source makes it clear what's going on. musl does not look = at /etc/localtime for the time zone. If TZ is unset it defaults to UTC. Try= export TZ=3Dyour-zoneinfo-timezone.

(relatedly, it is possibly desirable to have the timezone co= de examine /etc/localtime)

--001a11347bc28aa26004f85dc0e3--