Skip to content

Commit 1c3b2a7

Browse files
committed
Fix date formatting in logging
1 parent 7b6f6eb commit 1c3b2a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/logger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void Logger::pushTimestamp(std::ostream& str) const {
3636
auto timeT = std::chrono::system_clock::to_time_t(currentTime);
3737

3838
char buffer [84];
39-
auto leng = strftime(buffer, 80, "%Y-%m-%d %H:%02M:%S", localtime(&timeT));
39+
auto leng = strftime(buffer, 80, "%Y-%m-%d %H:%M:%S", localtime(&timeT));
4040
sprintf(&buffer[leng-1], ".%03lld", millisSinceEpoch - timeT*1000);
4141

4242
str << "["sv << buffer << "] "sv;

0 commit comments

Comments
 (0)