From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: [PATCH] use UTC instead of GMT
Date: Sat, 22 Jul 2017 10:26:25 -0400 [thread overview]
Message-ID: <20170722142625.GU1627@brightrain.aerifal.cx> (raw)
In-Reply-To: <20170722091903.19432-1-ncopa@alpinelinux.org>
On Sat, Jul 22, 2017 at 11:19:03AM +0200, Natanael Copa wrote:
> GMT is a timezone officially used by some countries in Europe and
> Africa. UTC is not a timezone, but a time standard. No country or
> territory officialy uses UTC as local time.
>
> Also, POSIX mentions UTC a few places[1][2] but never GMT (except as an
> example[2] for a timezone)
>
> So it makes more sense to use UTC instead of GMT and return UTC when no
> timezone is set in /etc/localtime or TZ is set to empty.
>
> [1]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/gmtime.html
> [2]: http://pubs.opengroup.org/onlinepubs/9699919799/functions/timezone.html
> ---
>
> This causes real problems for people:
> https://github.com/gliderlabs/docker-alpine/issues/310#issuecomment-316732179
The motivation for the naming was that POSIX "UTC" is not actually UTC
but something like UT1 or modified UTC more akin to historical GMT.
You can certainly get it to show "UTC" just by setting TZ=UTC, but
if users are actually hitting problems from this it should be reviewed
whether the behavior still makes sense.
Rich
next prev parent reply other threads:[~2017-07-22 14:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-22 9:19 Natanael Copa
2017-07-22 14:26 ` Rich Felker [this message]
2017-07-28 12:35 ` Natanael Copa
2017-07-28 13:00 ` Rich Felker
2017-07-28 14:05 ` A. Wilcox
2017-07-28 14:54 ` Rich Felker
2017-12-07 16:54 Natanael Copa
2017-12-07 21:22 ` A. Wilcox
2017-12-07 22:15 ` Natanael Copa
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=20170722142625.GU1627@brightrain.aerifal.cx \
--to=dalias@libc.org \
--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).