aboutsummaryrefslogtreecommitdiff
path: root/Linux_C_12/cCCallSystem_121.c
diff options
context:
space:
mode:
Diffstat (limited to 'Linux_C_12/cCCallSystem_121.c')
-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;