>>>>> "Alexandre" == Alexandre Julliard <[EMAIL PROTECTED]> writes:

    Alexandre> Uwe Bonnes <[EMAIL PROTECTED]> writes:
    >> ptm = localtime(&utc); ptm = gmtime(&utc); ret = last_bias =
    >> (int)(utc-mktime(ptm));
    >> 
    >> I my understanding mktime(gmtime(time(NULL))) == time(NULL)

    Alexandre> No, mktime takes local time, it's the reverse of localtime(),
    Alexandre> not gmtime().

But then, what is wrong with
bias = int(time(NULL) - mktime(localtime(mktime(NULL).

like I suppose with my patch

At present, we do 
bias = int(time(NULL) - mktime((gmtime(mktime(NULL)||changes tm_isdst)))

which is diffuse at least and at make the quickworks/synplicity/flexlm combo
stop.

Don't count the hours, I have hunted that bug. Any help is appreciated.

Bye
-- 
Uwe Bonnes                [EMAIL PROTECTED]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

Reply via email to