summaryrefslogtreecommitdiff
path: root/src/filelogger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filelogger.cpp')
-rw-r--r--src/filelogger.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/filelogger.cpp b/src/filelogger.cpp
index fff0b37fa..5786758da 100644
--- a/src/filelogger.cpp
+++ b/src/filelogger.cpp
@@ -21,8 +21,6 @@
#include "inspircd.h"
#include <fstream>
-#include "socketengine.h"
-#include "filelogger.h"
FileLogStream::FileLogStream(LogLevel loglevel, FileWriter *fw) : LogStream(loglevel), f(fw)
{
@@ -47,10 +45,7 @@ void FileLogStream::OnLog(LogLevel loglevel, const std::string &type, const std:
if (ServerInstance->Time() != LAST)
{
- time_t local = ServerInstance->Time();
- struct tm *timeinfo = localtime(&local);
-
- TIMESTR.assign(asctime(timeinfo), 24);
+ TIMESTR = InspIRCd::TimeString(ServerInstance->Time());
LAST = ServerInstance->Time();
}