This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1000673] New: mktime returns wrong result for 2000/2/29
- From: bugzilla-daemon at ecoscentric dot com
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Wed, 21 Jan 2009 03:41:06 +0000
- Subject: [Bug 1000673] New: mktime returns wrong result for 2000/2/29
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000673
Summary: mktime returns wrong result for 2000/2/29
Product: eCos
Version: unknown
Platform: Other (please specify)
OS/Version: Other
Status: UNCONFIRMED
Severity: normal
Priority: normal
Component: C library
AssignedTo: jifl@ecoscentric.com
ReportedBy: manboy.huang@gmail.com
QAContact: ecos-bugs@ecos.sourceware.org
Class: ---
mktime result for 2000/2/29 x:x:x is wrong (the same as 2000/3/1)
Reproducible: Always
Steps to Reproduce:
1.use mktime() to get time_t for 2000/2/29 x:x:x
2.
3.
in timeutil.cxx,
it passes wrong parameter to cyg_libc_time_year_is_leap
wrong:
cyg_libc_time_year_is_leap(timeptr->tm_year);
correct:
cyg_libc_time_year_is_leap(1900+timeptr->tm_year);
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.