From b914fb3230e0a8a92452a16b46d6ecffeb41888c Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 13 Apr 1997 22:13:53 +0000 Subject: [PATCH] (generalizedtime2time): use `timegm' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1573 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/der_get.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/asn1/der_get.c b/lib/asn1/der_get.c index a8bb5c097..c6c89e207 100644 --- a/lib/asn1/der_get.c +++ b/lib/asn1/der_get.c @@ -222,16 +222,7 @@ generalizedtime2time (char *s, time_t *t) &tm.tm_min, &tm.tm_sec); tm.tm_year -= 1900; tm.tm_mon -= 1; - tm.tm_isdst = 0; - - *t = mktime(&tm); -#ifdef HAVE_STRUCT_TM_TM_GMTOFF - *t += tm.tm_gmtoff; -#elif defined(HAVE_TIMEZONE) - *t -= timezone; -#else -#error Cannot figure out where in timezoneworld we are -#endif + *t = timegm (&tm); } int