get the timezone in some correct way

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1322 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-03-09 20:01:42 +00:00
parent 22ecf0527a
commit 3a3ad7a7d7

View File

@@ -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
}