summaryrefslogtreecommitdiff
path: root/src/filelogger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filelogger.cpp')
-rw-r--r--src/filelogger.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/filelogger.cpp b/src/filelogger.cpp
index edb753a50..5786758da 100644
--- a/src/filelogger.cpp
+++ b/src/filelogger.cpp
@@ -45,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();
}