On Wed, 17 Mar 2004 13:00:20 +0100, you wrote: > If you change the TimeGetBias() function as mentioned, synplify starts with > the grace license.
To illustrate my last post, the attached patch makes it work as well. I still have to confirm that TZ is not used by the win API functions. Rein. -- Rein Klazes [EMAIL PROTECTED]
--- 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;