mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Use and propagate microsecond-precision timestamps to FormatTime
This enables sub-second precision timestamp formatting for logs and clients without server-time.
This commit is contained in:
+2
-2
@@ -271,9 +271,9 @@ void CLogMod::PutLog(const CString& sLine,
|
||||
}
|
||||
|
||||
CString sPath;
|
||||
time_t curtime;
|
||||
timeval curtime;
|
||||
|
||||
time(&curtime);
|
||||
gettimeofday(&curtime, nullptr);
|
||||
// Generate file name
|
||||
sPath = CUtils::FormatTime(curtime, m_sLogPath, GetUser()->GetTimezone());
|
||||
if (sPath.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user