From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11744 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] use UTC instead of GMT Date: Sat, 22 Jul 2017 10:26:25 -0400 Message-ID: <20170722142625.GU1627@brightrain.aerifal.cx> References: <20170722091903.19432-1-ncopa@alpinelinux.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1500733609 1285 195.159.176.226 (22 Jul 2017 14:26:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2017 14:26:49 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-11757-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jul 22 16:26:44 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dYvMa-00086A-IH for gllmg-musl@m.gmane.org; Sat, 22 Jul 2017 16:26:36 +0200 Original-Received: (qmail 15460 invoked by uid 550); 22 Jul 2017 14:26:38 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 15440 invoked from network); 22 Jul 2017 14:26:37 -0000 Content-Disposition: inline In-Reply-To: <20170722091903.19432-1-ncopa@alpinelinux.org> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:11744 Archived-At: 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