http://bugs.winehq.org/show_bug.cgi?id=19465
Summary: _mktime64 does not work with time/dates after 2038 Product: Wine Version: 1.1.26 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: spencercw@googlemail.com
Created an attachment (id=22617) --> (http://bugs.winehq.org/attachment.cgi?id=22617) Sample program showing the bug
A simple example program is attached. Any attempt to use _mktime64 with a date after ~2038 (i.e., any date that would require a 64-bit timestamp) returns -1 in Wine, but works ok in Windows (the example program shows 29348006400, tested WinXP 32 and Win7 64, cross compiled mingw32 4.4.0).
Since there doesn't appear to be any way to force UNIX mktime to return a 64-bit value, I suspect the only work-around for this would be to re-implement mktime in Wine.