Fix timezone issue with gettime. --- diff -urNp gnupg-2.0.5.org/common/gettime.c gnupg-2.0.5/common/gettime.c --- gnupg-2.0.5.org/common/gettime.c 2007-07-05 13:12:47.000000000 +0300 +++ gnupg-2.0.5/common/gettime.c 2007-07-07 19:51:01.000000000 +0300 @@ -208,8 +208,11 @@ isotime2epoch (const char *string) tmbuf.tm_mday = day; tmbuf.tm_mon = month-1; tmbuf.tm_year = year - 1900; - tmbuf.tm_isdst = -1; - return timegm (&tmbuf); + tmbuf.tm_isdst = 0; +{ + time_t x = mktime (&tmbuf); + return x + mktime (localtime (&x)) - mktime (gmtime (&x)); +} }