This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: "daylight" variable set wrong for Europe/Berlin?
- From: "U.Mutlu" <for-gmane at mutluit dot com>
- To: libc-help at sourceware dot org
- Date: Sat, 19 Mar 2016 17:27:29 +0100
- Subject: Re: "daylight" variable set wrong for Europe/Berlin?
- Authentication-results: sourceware.org; auth=none
- References: <ncjnpk$g40$1 at ger dot gmane dot org>
Ok, solved; there is no problem with "daylight".
The external variable "daylight" just means:
0 if this timezone does not have any daylight saving time rules,
nonzero if there is a time during the year when daylight saving time applies.
All right!
U.Mutlu wrote on 03/19/2016 03:30 PM:
Hi,
according to this site: http://www.timeanddate.com/time/change/germany/berlin
the daylight saving time in Germany (TZ="Europe/Berlin") begins
on 2016-March-27 at 02:00 and ends on 2016-Oct-30 at 03:00.
My system's default timezone is set to "Europe/Berlin" (system is Debian Linux
8).
But the "daylight" global variable has the value 1 today.
Is that not a bug? Shouldn't that variable be 1 only in the
above said daylight saving period?