diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-14 13:08:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-14 13:08:47 +0000 |
commit | 08b7e8e60eb059a1fa40c39e3802ffcfae6b0e0d (patch) | |
tree | 720b6b0390ca4cb4679dba3305faf989c252214d | |
parent | 1d6fcf371c0f490c6b9b2d2c271d99ad7af0a59f (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
-rw-r--r-- | src/modules/m_httpd.cpp | 2 |
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()) |