Skip to content

Commit 9b910c8

Browse files
fix time string format
1 parent 47af181 commit 9b910c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Strings.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ void print_log_prefix(FILE* stream, LogLevel level) {
207207
#endif
208208
strftime(time_buffer, sizeof(time_buffer), "%Y-%m-%d %H:%M:%S", &now_tm);
209209
char level_char = log_level_chars.at(static_cast<int>(level));
210-
fwrite_fmt(stream, "{:c} {} {} - ", level_char, getpid_cached(), time_buffer);
210+
fwrite_fmt(stream, "{:c} {} {} - ", level_char, getpid_cached(), &time_buffer[0]);
211211
}
212212

213213
PrefixedLogger::PrefixedLogger(const string& prefix, LogLevel min_level)

0 commit comments

Comments
 (0)