From 3a3ad7a7d7965036cb8ae6e734d08654a6dd2910 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 9 Mar 1997 20:01:42 +0000 Subject: [PATCH] get the timezone in some correct way git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1322 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/der_get.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/asn1/der_get.c b/lib/asn1/der_get.c index 511ac87bf..2a51dc401 100644 --- a/lib/asn1/der_get.c +++ b/lib/asn1/der_get.c @@ -212,8 +212,12 @@ generalizedtime2time (char *s, time_t *t) tm.tm_isdst = 0; *t = mktime(&tm); -#if 1 /* XXX */ +#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 }