correct timezone provision

This commit is contained in:
Kolan Sh 2011-12-09 14:30:17 +03:00
parent ebb76185ad
commit 4cadb48d74
1 changed files with 2 additions and 3 deletions

View File

@ -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));