This is the mail archive of the libc-hacker@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

New tzdata exposes bug (?) in calculation of daylight



The testsuite reports now an error in timezone/tst-timezone.  The
relevant part is:
Checking timezone Asia/Tokyo
tzname[0]: JST
tzname[1]: JST
daylight: 1
timezone: -32400
Timezone: Asia/Tokyo, daylight is: 1 but should be: 0
tzname[0]: JST
tzname[1]: JST
daylight: 1
timezone: -32400
Timezone: Asia/Tokyo, daylight is: 1 but should be: 0

Looking at the zone file (timezone/asia) I notice that there's no
daylight saving time in effect, they just changed the name (`FORMAT').

# Zone	NAME		GMTOFF	RULES	FORMAT	[UNTIL]
Zone	Asia/Tokyo	9:18:59	-	LMT	1887 Dec 31 15:00u
			9:00	-	JST	1896
			9:00	-	CJT	1938
			9:00	-	JST

Formerly the format was just:
Zone	Asia/Tokyo	9:19:04	-	LMT	1896
			9:00	-	JST

I do think that daylight should be 0 and not 1.

Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]