Attempt to fix httpdate_to_timestamp() on freebsd
authorArt Cancro <ajc@citadel.org>
Sat, 9 Feb 2008 21:38:32 +0000 (21:38 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 9 Feb 2008 21:38:32 +0000 (21:38 +0000)
webcit/fmt_date.c

index 6bfebd4d54a6a4d0697fa3454f4349a41c91be41..13a4eb9286f6c012a0b0a433f3120926b0da93ff 100644 (file)
@@ -220,7 +220,7 @@ time_t httpdate_to_timestamp(char *buf)
         * some systems.
         */
        tzset();
-       tt.tm_sec -= timezone;
+       tt.tm_sec = tt.tm_sec - (int)timezone;
        t = mktime(&tt);
        return t;
 }