From 1d578011ed2ee7e508af119d963e7283b1d0dc6f Mon Sep 17 00:00:00 2001
From: hantwofish <hankangkang5@huawei.com>
Date: Mon, 18 Dec 2023 09:52:21 +0800
Subject: [PATCH] mod time err

---
 src/ltran/ltran_dfx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ltran/ltran_dfx.c b/src/ltran/ltran_dfx.c
index 25d4f35..c8dc562 100644
--- a/src/ltran/ltran_dfx.c
+++ b/src/ltran/ltran_dfx.c
@@ -1018,7 +1018,7 @@ static void gazelle_localtime_string(char* str, int buff_len)
     time_t t = time.tv_sec;
     tm = localtime(&t);
     int ret = sprintf_s(str, buff_len, "%d-%d-%d %d:%d:%d",
-        tm->tm_yday + 1900, tm->tm_mon + 1, tm->tm_yday, tm->tm_hour, tm->tm_min, tm->tm_sec);
+        tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);
     if (ret < 0) {
         printf("gazelle_localtime_string sprintf_s fail ret=%d\n", ret);
         return;
-- 
2.27.0

