[Bug 1855] TzSpecificLocalTimeToSystemTime SystemTimeToTzSpecificLocalTime don't use hour for daylight saving

Wine Bugs wine-bugs at winehq.org
Sat Oct 1 08:41:59 CDT 2005


http://bugs.winehq.org/show_bug.cgi?id=1855





------- Additional Comments From martin-fuchs at gmx.net  2005-01-10 08:41 -------
The problem seems to be fixed already - the current code looks like this, and 
takes into account hour, minutes, and seconds:

    /* convert to seconds */
    limit_day = ((limit_day * 24  + compareDate->wHour) * 60 +
            compareDate->wMinute ) * 60;
    dayinsecs = ((date->wDay * 24  + date->wHour) * 60 +
            date->wMinute ) * 60 + date->wSecond;
    /* and compare */
    return dayinsecs < limit_day ? -1 :
           dayinsecs > limit_day ? 1 :
           0;   /* date is equal to the date limit. */

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the wine-bugs mailing list