{"thread":{"id":"37003","subject":"[PATCH] Fix: wrong offset for CET timezone","startedAt":"2014-06-26T13:53:32Z","lastAt":"2014-06-27T08:51:45Z","messageCount":5,"participants":["Alan Franzoni","Robin Rosenberg","Andreas Schwab"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"245018","messageId":"1403790812-29174-1-git-send-email-mailing@franzoni.eu","threadId":"37003","inReplyTo":null,"subject":"[PATCH] Fix: wrong offset for CET timezone","fromName":"Alan Franzoni","fromEmail":"mailing@franzoni.eu","sentAt":"2014-06-26T13:53:32Z","receivedAt":"2014-06-26T13:53:32Z","isPatch":true,"sender":{"key":"mailing@franzoni.eu","avatar":null},"body":"From: Alan Franzoni <username@franzoni.eu>\n\nSigned-off-by: Alan Franzoni <username@franzoni.eu>\n---\n Documentation/date-formats.txt | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/Documentation/date-formats.txt b/Documentation/date-formats.txt\nindex ccd1fc8..284308a 100644\n--- a/Documentation/date-formats.txt\n+++ b/Documentation/date-formats.txt\n@@ -11,7 +11,7 @@ Git internal format::\n \tIt is `<unix timestamp> <time zone offset>`, where `<unix\n \ttimestamp>` is the number of seconds since the UNIX epoch.\n \t`<time zone offset>` is a positive or negative offset from UTC.\n-\tFor example CET (which is 2 hours ahead UTC) is `+0200`.\n+\tFor example CET (which is 1 hour ahead UTC) is `+0100`.\n \n RFC 2822::\n \tThe standard email format as described by RFC 2822, for example\n-- \n2.0.0\n"},{"id":"245047","messageId":"166360487.125996.1403820532765.JavaMail.zimbra@dewire.com","threadId":"37003","inReplyTo":"1403790812-29174-1-git-send-email-mailing@franzoni.eu","subject":"Re: [PATCH] Fix: wrong offset for CET timezone","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg@dewire.com","sentAt":"2014-06-26T22:08:52Z","receivedAt":"2014-06-26T22:08:52Z","isPatch":true,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"\n\n----- Ursprungligt meddelande -----\n> Från: \"Alan Franzoni\" <mailing@franzoni.eu>\n> Till: git@vger.kernel.org\n> Kopia: \"Alan Franzoni\" <username@franzoni.eu>\n> Skickat: torsdag, 26 jun 2014 15:53:32\n> Ämne: [PATCH] Fix: wrong offset for CET timezone\n> \n> From: Alan Franzoni <username@franzoni.eu>\n> \n> Signed-off-by: Alan Franzoni <username@franzoni.eu>\n> ---\n>  Documentation/date-formats.txt | 2 +-\n>  1 file changed, 1 insertion(+), 1 deletion(-)\n> \n> diff --git a/Documentation/date-formats.txt b/Documentation/date-formats.txt\n> index ccd1fc8..284308a 100644\n> --- a/Documentation/date-formats.txt\n> +++ b/Documentation/date-formats.txt\n> @@ -11,7 +11,7 @@ Git internal format::\n>  \tIt is `<unix timestamp> <time zone offset>`, where `<unix\n>  \ttimestamp>` is the number of seconds since the UNIX epoch.\n>  \t`<time zone offset>` is a positive or negative offset from UTC.\n> -\tFor example CET (which is 2 hours ahead UTC) is `+0200`.\n> +\tFor example CET (which is 1 hour ahead UTC) is `+0100`.\n\n1 hour in winter and 2 in summer, although some standards seem to say\nthat summer time is really called CEST, computers apply DST to CET in summer.\n\n$ TZ=UTC date\nTor 26 Jun 2014 22:08:01 UTC\n\n$ TZ=CET date\nFre 27 Jun 2014 00:08:05 CEST\n\n-- robin\n \n>  RFC 2822::\n>  \tThe standard email format as described by RFC 2822, for example\n> --\n> 2.0.0\n> \n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n> \n"},{"id":"245055","messageId":"87lhsi23ph.fsf@igel.home","threadId":"37003","inReplyTo":"166360487.125996.1403820532765.JavaMail.zimbra@dewire.com","subject":"Re: [PATCH] Fix: wrong offset for CET timezone","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2014-06-27T07:48:10Z","receivedAt":"2014-06-27T07:48:10Z","isPatch":true,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"Robin Rosenberg <robin.rosenberg@dewire.com> writes:\n\n> $ TZ=CET date\n> Fre 27 Jun 2014 00:08:05 CEST\n\nThat only works because CET is a special zone name (POSIX time zones\nrequire at least a number to denote the standard offset), similar to\nEurope/Berlin but without the history.\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5\n\"And now for something completely different.\"\n"},{"id":"245059","messageId":"CAF3z5=m5Ac5qWuXNXZaRqfDjbmt37qHjbj6YxkaE12VYsZegcg@mail.gmail.com","threadId":"37003","inReplyTo":"166360487.125996.1403820532765.JavaMail.zimbra@dewire.com","subject":"Re: [PATCH] Fix: wrong offset for CET timezone","fromName":"Alan Franzoni","fromEmail":"mailing@franzoni.eu","sentAt":"2014-06-27T08:24:23Z","receivedAt":"2014-06-27T08:24:23Z","isPatch":true,"sender":{"key":"mailing@franzoni.eu","avatar":null},"body":"On Fri, Jun 27, 2014 at 12:08 AM, Robin Rosenberg\n<robin.rosenberg@dewire.com> wrote:\n> 1 hour in winter and 2 in summer, although some standards seem to say\n> that summer time is really called CEST, computers apply DST to CET in summer.\n>\n> $ TZ=UTC date\n> Tor 26 Jun 2014 22:08:01 UTC\n>\n> $ TZ=CET date\n> Fre 27 Jun 2014 00:08:05 CEST\n\nLike Andreas pointed out, this seems an implementation detail. CET is\nstill +1, while CEST is +2.\n\nIf you take a look at the official IANA tzdata:\n\nhttp://www.iana.org/time-zones/repository/releases/tzdata2014e.tar.gz\n\nFor europe, it's something like \"std: CET\" and \"dst: CEST\".\n\nThe current doc is not correct either; we should write something like\n\"either +1 or +2 depending on DST\" (there seems to be a 2dst as well\nwhich gets +3 offset);\n\nUsually the best way of handling timezones is to use the proper\nlocation format (e.g. TZ='Europe/Rome') and then letting the system\npick the proper offset; we might say something like ' \"Europe/Rome\"\nwhich is +1 in winter ' in the doc, but I'd say that's nitpicking.\n\n\n-- \ncontact me at public@[mysurname].eu\n"},{"id":"245061","messageId":"339300321.129156.1403859105924.JavaMail.zimbra@dewire.com","threadId":"37003","inReplyTo":"CAF3z5=m5Ac5qWuXNXZaRqfDjbmt37qHjbj6YxkaE12VYsZegcg@mail.gmail.com","subject":"Re: [PATCH] Fix: wrong offset for CET timezone","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg@dewire.com","sentAt":"2014-06-27T08:51:45Z","receivedAt":"2014-06-27T08:51:45Z","isPatch":true,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"\n\n----- Ursprungligt meddelande -----\n> Från: \"Alan Franzoni\" <mailing@franzoni.eu>\n> Till: \"Robin Rosenberg\" <robin.rosenberg@dewire.com>\n> Kopia: git@vger.kernel.org, \"Alan Franzoni\" <username@franzoni.eu>, schwab@linux-m68k.org\n> Skickat: fredag, 27 jun 2014 10:24:23\n> Ämne: Re: [PATCH] Fix: wrong offset for CET timezone\n> \n> On Fri, Jun 27, 2014 at 12:08 AM, Robin Rosenberg\n> <robin.rosenberg@dewire.com> wrote:\n> > 1 hour in winter and 2 in summer, although some standards seem to say\n> > that summer time is really called CEST, computers apply DST to CET in\n> > summer.\n> >\n> > $ TZ=UTC date\n> > Tor 26 Jun 2014 22:08:01 UTC\n> >\n> > $ TZ=CET date\n> > Fre 27 Jun 2014 00:08:05 CEST\n> \n> Like Andreas pointed out, this seems an implementation detail. CET is\n> still +1, while CEST is +2.\n\nI mentioned that myself... \n \n> If you take a look at the official IANA tzdata:\n> \n> http://www.iana.org/time-zones/repository/releases/tzdata2014e.tar.gz\n> \n> For europe, it's something like \"std: CET\" and \"dst: CEST\".\n> \n> The current doc is not correct either; we should write something like\n> \"either +1 or +2 depending on DST\" (there seems to be a 2dst as well\n> which gets +3 offset);\n\nI knew there gotta be a catch. I don't think glibc is advanced enough\nto provide two different summer times for the same TZ.\n\n> Usually the best way of handling timezones is to use the proper\n> location format (e.g. TZ='Europe/Rome') and then letting the system\n> pick the proper offset; we might say something like ' \"Europe/Rome\"\n> which is +1 in winter ' in the doc, but I'd say that's nitpicking.\n\nProbably is. I think mentioning that CET can be either +1 or +2 is\nenough. \n\n+ For example CET (here), which is nominally 1 hour ahead of UTC is encoded \n+ as `+0100`, but when summer savings apply, CET is two hours ahead and encoded\n+ as `+0200`).\n\n-- robin\n"}]}