This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


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