--- wine/dlls/ntdll/time.c 2004-03-12 09:58:09.000000000 +0100 +++ mywine/dlls/ntdll/time.c 2004-03-18 11:37:35.000000000 +0100 @@ -496,6 +496,7 @@ static int last_bias; static int last_daylight; int ret; + char *tzenvval; RtlEnterCriticalSection( &TIME_GetBias_section ); if(utc == last_utc) @@ -504,6 +505,8 @@ ret = last_bias; } else { + tzenvval = getenv( "TZ"); + if( tzenvval) unsetenv( "TZ"); ptm = localtime(&utc); *pdaylight = last_daylight = ptm->tm_isdst; /* daylight for local timezone */ @@ -511,6 +514,7 @@ ptm->tm_isdst = *pdaylight; /* use local daylight, not that of Greenwich */ last_utc = utc; ret = last_bias = (int)(utc-mktime(ptm)); + if( tzenvval) setenv( "TZ", tzenvval, 0); } RtlLeaveCriticalSection( &TIME_GetBias_section ); return ret;