projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Meow meow! Applied patches sent by LadySerenaKitty for improved FreeBSD compatibility.
[citadel.git]
/
webcit
/
fmt_date.c
diff --git
a/webcit/fmt_date.c
b/webcit/fmt_date.c
index 62caf410c83524ef23243bb39719cdad58cc815e..a14c3d5c3026ca60c1a0263689273572bd4a52d7 100644
(file)
--- a/
webcit/fmt_date.c
+++ b/
webcit/fmt_date.c
@@
-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;
}