Bug 10211 - localtime does not consider the leap-seconds. glibc >= 2.7
Summary: localtime does not consider the leap-seconds. glibc >= 2.7
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-28 07:26 UTC by Akinori Hattori
Modified: 2014-07-01 20:17 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Patch to fix the problem (215 bytes, patch)
2009-05-28 07:31 UTC, Akinori Hattori
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.