Bug 10211

Summary: localtime does not consider the leap-seconds. glibc >= 2.7
Product: glibc Reporter: Akinori Hattori <hattya>
Component: libcAssignee: Ulrich Drepper <drepper.fsp>
Status: RESOLVED FIXED    
Severity: normal CC: glibc-bugs
Priority: P2 Flags: fweimer: security-
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: Patch to fix the problem

Description Akinori Hattori 2009-05-28 07:26:00 UTC
localtime does not consider the leap-seconds, if daylight-saving time is not
defined timep's year or later

daylight-saving time:
  $ TZ=right/US/Eastern date -d@1230768023
  Wed Dec 31 18:59:60 EST 2008

no daylight-saving time:
  $ TZ=right/Asia/Tokyo date -d@1230768023
  Thu Jan  1 09:00:23 JST 2009

  expected => Thu Jan  1 08:59:60 JST 2009
Comment 1 Akinori Hattori 2009-05-28 07:31:05 UTC
Created attachment 3970 [details]
Patch to fix the problem
Comment 2 Ulrich Drepper 2009-06-15 18:02:41 UTC
I applied the patch.  The problem wasn't visible, though, because of another bug.