"Alexandre" == Alexandre Julliard julliard@winehq.org writes:
Alexandre> Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de writes: >> Changelog: wine/dlls/ntdll/time.c: TIME_GetBias Calculate the Bias >> before calling gmtime
Alexandre> This cannot be right, the bias is supposed to be the Alexandre> difference between local time and GMT, so you have to use Alexandre> gmtime() not localtime().
Look for the typical sequence:
... RtlLocalTimeToSystemTime () ... gmt = time(NULL); bias = TIME_GetBias(gmt, &daylight);
TIME_GetBias(time_t utc, int *pdaylight) ... ptm = localtime(&utc); ptm = gmtime(&utc); ret = last_bias = (int)(utc-mktime(ptm));
I my understanding mktime(gmtime(time(NULL))) == time(NULL)