From: Robin Rosenberg <robin.rosenberg@dewire.com>
To: Alan Franzoni <mailing@franzoni.eu>
Cc: git@vger.kernel.org, Alan Franzoni <username@franzoni.eu>,
schwab@linux-m68k.org
Subject: Re: [PATCH] Fix: wrong offset for CET timezone
Date: Fri, 27 Jun 2014 10:51:45 +0200 (CEST) [thread overview]
Message-ID: <339300321.129156.1403859105924.JavaMail.zimbra@dewire.com> (raw)
In-Reply-To: <CAF3z5=m5Ac5qWuXNXZaRqfDjbmt37qHjbj6YxkaE12VYsZegcg@mail.gmail.com>
----- Ursprungligt meddelande -----
> Från: "Alan Franzoni" <mailing@franzoni.eu>
> Till: "Robin Rosenberg" <robin.rosenberg@dewire.com>
> Kopia: git@vger.kernel.org, "Alan Franzoni" <username@franzoni.eu>, schwab@linux-m68k.org
> Skickat: fredag, 27 jun 2014 10:24:23
> Ämne: Re: [PATCH] Fix: wrong offset for CET timezone
>
> On Fri, Jun 27, 2014 at 12:08 AM, Robin Rosenberg
> <robin.rosenberg@dewire.com> wrote:
> > 1 hour in winter and 2 in summer, although some standards seem to say
> > that summer time is really called CEST, computers apply DST to CET in
> > summer.
> >
> > $ TZ=UTC date
> > Tor 26 Jun 2014 22:08:01 UTC
> >
> > $ TZ=CET date
> > Fre 27 Jun 2014 00:08:05 CEST
>
> Like Andreas pointed out, this seems an implementation detail. CET is
> still +1, while CEST is +2.
I mentioned that myself...
> If you take a look at the official IANA tzdata:
>
> http://www.iana.org/time-zones/repository/releases/tzdata2014e.tar.gz
>
> For europe, it's something like "std: CET" and "dst: CEST".
>
> The current doc is not correct either; we should write something like
> "either +1 or +2 depending on DST" (there seems to be a 2dst as well
> which gets +3 offset);
I knew there gotta be a catch. I don't think glibc is advanced enough
to provide two different summer times for the same TZ.
> Usually the best way of handling timezones is to use the proper
> location format (e.g. TZ='Europe/Rome') and then letting the system
> pick the proper offset; we might say something like ' "Europe/Rome"
> which is +1 in winter ' in the doc, but I'd say that's nitpicking.
Probably is. I think mentioning that CET can be either +1 or +2 is
enough.
+ For example CET (here), which is nominally 1 hour ahead of UTC is encoded
+ as `+0100`, but when summer savings apply, CET is two hours ahead and encoded
+ as `+0200`).
-- robin
prev parent reply other threads:[~2014-06-27 8:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-26 13:53 [PATCH] Fix: wrong offset for CET timezone Alan Franzoni
2014-06-26 22:08 ` Robin Rosenberg
2014-06-27 7:48 ` Andreas Schwab
2014-06-27 8:24 ` Alan Franzoni
2014-06-27 8:51 ` Robin Rosenberg [this message]
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=339300321.129156.1403859105924.JavaMail.zimbra@dewire.com \
--to=robin.rosenberg@dewire.com \
--cc=git@vger.kernel.org \
--cc=mailing@franzoni.eu \
--cc=schwab@linux-m68k.org \
--cc=username@franzoni.eu \
/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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.