mirror of
https://github.com/znc/znc.git
synced 2026-08-08 09:52:55 +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:
@@ -58,8 +58,8 @@ class CAwayJob : public CTimer {
|
||||
class CAway : public CModule {
|
||||
void AwayCommand(const CString& sCommand) {
|
||||
CString sReason;
|
||||
time_t curtime;
|
||||
time(&curtime);
|
||||
timeval curtime;
|
||||
gettimeofday(&curtime, nullptr);
|
||||
|
||||
if (sCommand.Token(1) != "-quiet") {
|
||||
sReason = CUtils::FormatTime(curtime, sCommand.Token(1, true),
|
||||
|
||||
Reference in New Issue
Block a user