Meow meow! Applied patches sent by LadySerenaKitty for improved FreeBSD compatibility.
[citadel.git] / webcit / fmt_date.c
index 62caf410c83524ef23243bb39719cdad58cc815e..a14c3d5c3026ca60c1a0263689273572bd4a52d7 100644 (file)
@@ -280,7 +280,11 @@ time_t httpdate_to_timestamp(StrBuf *buf)
         * some systems.
         */
        tzset();
+#ifdef __FreeBSD__
+       tt.tm_sec = tt.tm_sec - tt.tm_gmtoff;
+#else
        tt.tm_sec = tt.tm_sec - (int)timezone;
+#endif
        t = mktime(&tt);
        return t;
 }