git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix: wrong offset for CET timezone

From
AFAlan Franzoni <mailing@franzoni.eu>
Date
Jun 27, 2014, 08:24 UTC
Message-ID
<CAF3z5=m5Ac5qWuXNXZaRqfDjbmt37qHjbj6YxkaE12VYsZegcg@mail.gmail.com>
In-Reply-To
<166360487.125996.1403820532765.JavaMail.zimbra@dewire.com>

On Fri, Jun 27, 2014 at 12:08 AM, Robin Rosenberg <robin.rosenberg@dewire.com> wrote:

Show 8 quoted lines
> 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.

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);

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.

-- 
contact me at public@[mysurname].eu
Previous: Andreas SchwabNext: Robin Rosenberg
Message 4 of 5 in “Fix: wrong offset for CET timezone”
  1. Fix: wrong offset for CET timezoneAlan Franzoni, Jun 26, 2014
  2. Robin RosenbergJun 26, 2014
  3. Andreas SchwabJun 27, 2014
  4. Alan FranzoniJun 27, 2014
  5. Robin RosenbergJun 27, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.