From 852352f7f23da9c1f02de9baf833ab623f04e92b Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 19 Aug 2015 23:23:44 +0200 Subject: To mimic the Windows library, WinGetTime now returns the local time rather than the UTC time --- Linux_C_12/cCCallSystem_121.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linux_C_12/cCCallSystem_121.c b/Linux_C_12/cCCallSystem_121.c index fb890b3..0489882 100644 --- a/Linux_C_12/cCCallSystem_121.c +++ b/Linux_C_12/cCCallSystem_121.c @@ -71,7 +71,7 @@ void WinGetTime (OS ios, int *hr, int *min, int *second, OS *oos) printf("WinGetTime\n"); gettimeofday(&t,NULL); - gmtime_r(&t.tv_sec,&theTime); + localtime_r(&t.tv_sec,&theTime); *hr = theTime.tm_hour; *min = theTime.tm_min; -- cgit v1.2.3