projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ab933d
)
Attempt to fix httpdate_to_timestamp() on freebsd
author
Art Cancro
<ajc@citadel.org>
Sat, 9 Feb 2008 21:38:32 +0000
(21:38 +0000)
committer
Art Cancro
<ajc@citadel.org>
Sat, 9 Feb 2008 21:38:32 +0000
(21:38 +0000)
webcit/fmt_date.c
patch
|
blob
|
history
diff --git
a/webcit/fmt_date.c
b/webcit/fmt_date.c
index 6bfebd4d54a6a4d0697fa3454f4349a41c91be41..13a4eb9286f6c012a0b0a433f3120926b0da93ff 100644
(file)
--- a/
webcit/fmt_date.c
+++ b/
webcit/fmt_date.c
@@
-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;
}