summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-14 13:08:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-14 13:08:47 +0000
commit08b7e8e60eb059a1fa40c39e3802ffcfae6b0e0d (patch)
tree720b6b0390ca4cb4679dba3305faf989c252214d /src
parent1d6fcf371c0f490c6b9b2d2c271d99ad7af0a59f (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_httpd.cpp2
1 files changed, 1 insertions, 1 deletions
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())