]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
strptime returns time in the local time zone so use mktime
authorMark Andrews <marka@isc.org>
Fri, 10 Jan 2014 12:44:59 +0000 (23:44 +1100)
committerMark Andrews <marka@isc.org>
Fri, 10 Jan 2014 12:46:17 +0000 (23:46 +1100)
(cherry picked from commit 429ab67296b267ddd5c78b1121dfe72862860893)

lib/isc/unix/time.c

index 941a3188bbbbc54401e2f176b447a0774837e557..43b1b4b115885190fd8359a24cb8b1c7167e8bd1 100644 (file)
@@ -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);