correct timezone provision
This commit is contained in:
parent
ebb76185ad
commit
4cadb48d74
|
@ -17,10 +17,9 @@ int main(int argc, char *argv[])
|
|||
tm.tm_hour = 15;
|
||||
tm.tm_min = 15;
|
||||
tm.tm_sec = 52;
|
||||
tm.tm_isdst = 0;
|
||||
|
||||
putenv("TZ=GMT+0");
|
||||
|
||||
tt = mktime(&tm);
|
||||
tt = mktime(&tm) - timezone;
|
||||
|
||||
memset(&tm, 0, sizeof(tm));
|
||||
|
||||
|
|
Loading…
Reference in New Issue