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_hour = 15;
|
||||||
tm.tm_min = 15;
|
tm.tm_min = 15;
|
||||||
tm.tm_sec = 52;
|
tm.tm_sec = 52;
|
||||||
|
tm.tm_isdst = 0;
|
||||||
|
|
||||||
putenv("TZ=GMT+0");
|
tt = mktime(&tm) - timezone;
|
||||||
|
|
||||||
tt = mktime(&tm);
|
|
||||||
|
|
||||||
memset(&tm, 0, sizeof(tm));
|
memset(&tm, 0, sizeof(tm));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user