From 08b7e8e60eb059a1fa40c39e3802ffcfae6b0e0d Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 14 Sep 2006 13:08:47 +0000 Subject: Use gmtime() not localtime() as RFC2616 says dates sent by a http server must be GMT/UTC git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5248 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_httpd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 8bfe7c6fe..173001cb2 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -172,7 +172,7 @@ class HttpSocket : public InspSocket void SendHeaders(unsigned long size, int response, const std::string &extraheaders) { time_t local = this->Instance->Time(); - struct tm *timeinfo = localtime(&local); + struct tm *timeinfo = gmtime(&local); this->Write("HTTP/1.1 "+ConvToStr(response)+" "+Response(response)+"\r\nDate: "); this->Write(asctime(timeinfo)); if (extraheaders.empty()) -- cgit v1.2.3