From 91288951f4489ebef05bd7be823b456b45e36dcd Mon Sep 17 00:00:00 2001 From: "K.Takata" Date: Wed, 4 Jan 2012 19:29:34 +0900 Subject: [PATCH] add year in the SNTP log. --- source/sntp/sntp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/sntp/sntp.c b/source/sntp/sntp.c index 00f2daf..10d1d7c 100644 --- a/source/sntp/sntp.c +++ b/source/sntp/sntp.c @@ -557,8 +557,8 @@ void Log(HWND hwndSNTP, const char *msg) char s[160]; GetLocalTime(&st); - wsprintf(s, "%02d/%02d %02d:%02d:%02d ", - st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond); + wsprintf(s, "%04d/%02d/%02d %02d:%02d:%02d ", + st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond); strcat(s, msg); strcat(s, "\r\n");