Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de> writes: > ptm = localtime(&utc); > ptm = gmtime(&utc); > ret = last_bias = (int)(utc-mktime(ptm)); > > I my understanding mktime(gmtime(time(NULL))) == time(NULL) No, mktime takes local time, it's the reverse of localtime(), not gmtime(). -- Alexandre Julliard julliard at winehq.org