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:
@@ -212,8 +212,12 @@ generalizedtime2time (char *s, time_t *t)
|
|||||||
tm.tm_isdst = 0;
|
tm.tm_isdst = 0;
|
||||||
|
|
||||||
*t = mktime(&tm);
|
*t = mktime(&tm);
|
||||||
#if 1 /* XXX */
|
#ifdef HAVE_STRUCT_TM_TM_GMTOFF
|
||||||
|
*t += tm.tm_gmtoff;
|
||||||
|
#elif defined(HAVE_TIMEZONE)
|
||||||
*t -= timezone;
|
*t -= timezone;
|
||||||
|
#else
|
||||||
|
#error Cannot figure out where in timezoneworld we are
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user