mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Natanael Copa <ncopa@alpinelinux.org>
To: Rich Felker <dalias@libc.org>
Cc: musl@lists.openwall.com
Subject: Re: [PATCH] use UTC instead of GMT
Date: Fri, 28 Jul 2017 14:35:10 +0200	[thread overview]
Message-ID: <20170728143510.692c5020@ncopa-desktop.copa.dup.pw> (raw)
In-Reply-To: <20170722142625.GU1627@brightrain.aerifal.cx>

On Sat, 22 Jul 2017 10:26:25 -0400
Rich Felker <dalias@libc.org> wrote:

> 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.

Do you have any references on that?

> 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.

The problem at hand seems to be that some docker image used hardcoded
timezone to EST so they added automatic tests to verify that timezone
is UTC.

So tests broke on Alpine. To fix that it seems like they set the
timezone via TZ=UTC variable, and that broke things for users who set
the timezone via /etc/localtime.

Basically lot of minor fuzz, which all can easily be worked around, but
its just annoying.

I checked what FreeBSD, OpenBSD and GNU/Linux does when timezone is
unset. Seems that they all use "UTC" so I think that makes most sense.



> 
> Rich



  reply	other threads:[~2017-07-28 12:35 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
2017-07-28 12:35   ` Natanael Copa [this message]
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=20170728143510.692c5020@ncopa-desktop.copa.dup.pw \
    --to=ncopa@alpinelinux.org \
    --cc=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).