diff options
Diffstat (limited to 'Linux_C_12')
-rw-r--r-- | Linux_C_12/cCCallSystem_121.c | 2 |
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;
|