correct timezone provision

This commit is contained in:
Kolan Sh 2011-12-09 14:30:17 +03:00
parent ebb76185ad
commit 4cadb48d74

View File

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