From 1f48e43327dc0c879293c8a2b419336984fc53c7 Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Sat, 21 Dec 2024 03:16:49 +0800 Subject: [PATCH] change localtime instead of gmtime on OSD (#39) --- osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osd.c b/osd.c index 5f2c660..69473b0 100644 --- a/osd.c +++ b/osd.c @@ -1183,7 +1183,7 @@ static bool first_wfb_read=true; ipos++; char s[64]; time_t t = time(NULL); - struct tm *tm = gmtime(&t); + struct tm *tm = localtime(&t); strftime(s, 64, timefmt, tm); strcat(out, s); opos += strlen(s);