Re: [hackers] [quark][PATCH] fix bug where quark would send NOT_MODIFIED in different timezone
On Tue, 21 Jul 2020 10:41:53 -0700 Jeremy wrote: Dear Jeremy, > From: Jeremy Bobbin thanks for your patch! I've applied it. With best regards Laslo
[hackers] [quark][PATCH] fix bug where quark would send NOT_MODIFIED in different timezone
From: Jeremy Bobbin --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.c b/http.c index 249c168..8cf0ee4 100644 --- a/http.c +++ b/http.c @@ -531,7 +531,7 @@ http_send_response(int fd, struct request *r) } /* compare with last modification date of the file */ - if (difftime(st.st_mtim.tv_sec, mktime()) <= 0) { + if (difftime(st.st_mtim.tv_sec, timegm()) <= 0) { if (dprintf(fd, "HTTP/1.1 %d %s\r\n" "Date: %s\r\n" -- 2.27.0