aboutsummaryrefslogtreecommitdiff
path: root/Linux_C_12
diff options
context:
space:
mode:
authorCamil Staps2015-08-19 23:23:44 +0200
committerCamil Staps2015-08-19 23:23:44 +0200
commit852352f7f23da9c1f02de9baf833ab623f04e92b (patch)
treed785061eec02e54498cc6e1b0273bfbd8a7da34f /Linux_C_12
parentFixed issue with Tut 8.5 (menus) where Drawable pointer wasn't passed around ... (diff)
To mimic the Windows library, WinGetTime now returns the local time rather than the UTC time
Diffstat (limited to 'Linux_C_12')
-rw-r--r--Linux_C_12/cCCallSystem_121.c2
1 files changed, 1 insertions, 1 deletions
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;