Re: wrong timestamps

2005-05-14 Thread Alain Guibert
On Monday, May 9, 2005 at 5:53:26 PM +0200, Hrvoje Niksic wrote: Alain Guibert [EMAIL PROTECTED] writes: What about another method: putenv(TZ=GMT0), tzset(), mktime(), reset TZ to previous state, tzset() again. Not portable? That sounds at least as non-portable as the current method, and it

Re: wrong timestamps

2005-05-14 Thread Hrvoje Niksic
Alain Guibert [EMAIL PROTECTED] writes: I find it strange that the cmpt.c mktime produces garbage when that version is taken from glibc. Note that with TZ=GMT0 method and #undef HAVE_MKTIME, wget gives correct timestamps. Maybe cmpt.c mktime is failing because of incompatible timezone and