mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Josiah Worcester <josiahw@gmail.com>
To: musl@lists.openwall.com
Subject: Re: ctime, timezone?
Date: Thu, 1 May 2014 16:57:32 -0500	[thread overview]
Message-ID: <CAMAJcuBaXxPWXcm5tJGBGf69EtyPi3y3wndpw+SwN2sOJzVrKA@mail.gmail.com> (raw)
In-Reply-To: <CAMAJcuBfMXtj5vXJPhyGWPW_2kQc3PGWJBBMPa1gzVBt1_KD=A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 580 bytes --]

On Thu, May 1, 2014 at 3:56 PM, Josiah Worcester <josiahw@gmail.com> 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)

[-- Attachment #2: Type: text/html, Size: 1020 bytes --]

  reply	other threads:[~2014-05-01 21:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-01 20:37 John Mudd
2014-05-01 20:56 ` Josiah Worcester
2014-05-01 21:57   ` Josiah Worcester [this message]
2014-05-01 21:57 ` John Mudd
2014-05-01 22:00   ` John Mudd
2014-05-01 22:18     ` Josiah Worcester
2014-05-02  5:06       ` Timo Teras
2014-05-02  5:10         ` Timo Teras
2014-05-01 22:47     ` Laurent Bercot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMAJcuBaXxPWXcm5tJGBGf69EtyPi3y3wndpw+SwN2sOJzVrKA@mail.gmail.com \
    --to=josiahw@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).