From: Mark Andrews Date: Fri, 10 Jan 2014 12:44:59 +0000 (+1100) Subject: strptime returns time in the local time zone so use mktime X-Git-Tag: v9.10.0a2~127 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=429ab67296b267ddd5c78b1121dfe72862860893;p=thirdparty%2Fbind9.git strptime returns time in the local time zone so use mktime --- diff --git a/lib/isc/unix/time.c b/lib/isc/unix/time.c index 941a3188bbb..43b1b4b1158 100644 --- a/lib/isc/unix/time.c +++ b/lib/isc/unix/time.c @@ -418,7 +418,7 @@ isc_time_parsehttptimestamp(char *buf, isc_time_t *t) { p = strptime(buf, "%a, %d %b %Y %H:%M:%S %Z", &t_tm); if (p == NULL) return (ISC_R_UNEXPECTED); - when = timegm(&t_tm); + when = mktime(&t_tm); if (when == -1) return (ISC_R_UNEXPECTED); isc_time_set(t, when, 0);