From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5018 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 15:56:36 -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=047d7b6dc03aa1693904f85ce60c X-Trace: ger.gmane.org 1398977822 32017 80.91.229.3 (1 May 2014 20:57:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 May 2014 20:57:02 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5022-gllmg-musl=m.gmane.org@lists.openwall.com Thu May 01 22:56:55 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 1Wfy2D-0006Ol-67 for gllmg-musl@plane.gmane.org; Thu, 01 May 2014 22:56:49 +0200 Original-Received: (qmail 24191 invoked by uid 550); 1 May 2014 20:56:48 -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 24181 invoked from network); 1 May 2014 20:56:48 -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=XWK0ZffqxjK+Og/cGYf3x6i0tbyr0ycrez3C3e0rS2c=; b=z3FPFoCJol7ABTudCFkCP0MmQX+wY7zDtPP3/NCCidqXM2tssMzzya1z0Gm/ZqgHZK Ylp0a3ulfVOUqwfsYcZIX4bg0V8CH4b6Tjl1NfdQQg//85GVXOM7One1e5vnCFd9hyUS S6o02599llNHFTX7nfxbijVF+pfCwS0up3JZ/7QmOfHgn7a6NlEQyFQ9KBnWkw0LuISt TA5rHxt9aovfn/uDCMcq7YvqDnd09/5e/EnFKMwO5e5HRZxiFXDODr3O2YiKVqEjuPuk SFL3UagbYvCXRRxSSqMsNtDyLkbGag27N/EZ+znocQcL24eFzwAuo2FVb8IdDA1Oa9ps uXQQ== X-Received: by 10.180.21.180 with SMTP id w20mr3688255wie.34.1398977796858; Thu, 01 May 2014 13:56:36 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:5018 Archived-At: --047d7b6dc03aa1693904f85ce60c Content-Type: text/plain; charset=UTF-8 On Thu, May 1, 2014 at 3:37 PM, John Mudd wrote: > Am I doing something wrong? I expected roughly the same time when running > the musl version. > > $ gcc test_ctime.c -o test_ctime > $ test_ctime > Thu May 1 16:33:16 2014 > $ > > > $ musl-gcc -fno-stack-protector test_ctime.c -o test_ctime > $ test_ctime > Thu May 1 20:33:46 2014 > $ > 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? --047d7b6dc03aa1693904f85ce60c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On T= hu, May 1, 2014 at 3:37 PM, John Mudd <johnbmudd@gmail.com> wrote:
Am I doing something wrong?= I expected roughly the same time when running the musl version.

$ gcc =C2=A0test_ctime.c =C2=A0 -o test_ctime
$ test_ctime
Thu May =C2=A01 16:33:16 2014
$=C2=A0=


$ musl-gcc -fno-stack-p= rotector =C2=A0 =C2=A0test_ctime.c =C2=A0 -o test_ctime
$ test_ct= ime
Thu May =C2=A01 20:33:46 2014
$

It looks as though= glibc and musl have different ideas of what the timezone is. Could you pri= nt out the contents of the $TZ variable, and if /etc/localtime is a symlink= , could you tell us where that points to?

--047d7b6dc03aa1693904f85ce60c--