]> code.citadel.org Git - citadel.git/blobdiff - webcit/fmt_date.c
ical_ctdl_is_overlap() is now symlinked 3 places.
[citadel.git] / webcit / fmt_date.c
index 62caf410c83524ef23243bb39719cdad58cc815e..5050c1cceed4b7a917eb024b78a525770f367cf7 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #include "webcit.h"
-#include "webserver.h"
+
 
 #ifdef HAVE_USELOCALE
 extern locale_t *wc_locales;
@@ -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;
 }