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

2014-06-27 Thread Alan Franzoni
On Fri, Jun 27, 2014 at 12:08 AM, Robin Rosenberg
 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.

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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] Fix: wrong offset for CET timezone

2014-06-26 Thread Alan Franzoni
From: Alan Franzoni 

Signed-off-by: Alan Franzoni 
---
 Documentation/date-formats.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/date-formats.txt b/Documentation/date-formats.txt
index ccd1fc8..284308a 100644
--- a/Documentation/date-formats.txt
+++ b/Documentation/date-formats.txt
@@ -11,7 +11,7 @@ Git internal format::
It is ` `, where `` is the number of seconds since the UNIX epoch.
`` is a positive or negative offset from UTC.
-   For example CET (which is 2 hours ahead UTC) is `+0200`.
+   For example CET (which is 1 hour ahead UTC) is `+0100`.
 
 RFC 2822::
The standard email format as described by RFC 2822, for example
-- 
2.0.0

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html