Skip to content

Commit

Permalink
change localtime instead of gmtime on OSD (OpenIPC#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
lida2003 authored Dec 20, 2024
1 parent 59b9fc1 commit 1f48e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1f48e43

Please sign in to comment.