From 4f018ff10bcaff31e6b3cfa44590f25d458c9ddb Mon Sep 17 00:00:00 2001 From: siriuth <104502768+siriuth@users.noreply.github.com> Date: Thu, 28 Apr 2022 11:53:14 +0900 Subject: [PATCH] Update logger.c (#1527) Thanks --- src/logger.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/logger.c b/src/logger.c index b6249913..24b72579 100644 --- a/src/logger.c +++ b/src/logger.c @@ -154,11 +154,13 @@ FILE * set_logfile(const char *logfile_name) */ static char *str_time(void) { - static char buffer[16]; + //static char buffer[16]; // the month differs depending on the language. ex)LANG=ja_JP.UTF-8 + static char buffer[18]; time_t now = 0; now = time(0); - strftime(buffer, 16, "%b %d %H:%M:%S", localtime(&now)); + //strftime(buffer, 16, "%b %d %H:%M:%S", localtime(&now)); + strftime(buffer, 18, "%b %d %H:%M:%S", localtime(&now)); return buffer; }