diff options
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r-- | src/modules/m_httpd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index c433553be..6e5ddd514 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -167,7 +167,8 @@ class HttpSocket : public InspSocket void SendHeaders(unsigned long size, int response, const std::string &extraheaders) { - struct tm *timeinfo = localtime(&TIME); + time_t local = this->Instance->Time(); + struct tm *timeinfo = localtime(&local); this->Write("HTTP/1.1 "+ConvToStr(response)+" "+Response(response)+"\r\nDate: "); this->Write(asctime(timeinfo)); if (extraheaders.empty()) |