Skip to content
Snippets Groups Projects
Commit 4bf0b53c authored by rswindell's avatar rswindell
Browse files

Always call tzset()

parent 11efa237
No related branches found
No related tags found
No related merge requests found
......@@ -83,9 +83,9 @@ int main(int argc, char **argv)
if(argc>1 && stricmp(argv[1],"-z")==0) { /* zulu/GMT/UTC timezone */
printf("Setting timezone to Zulu/GMT/UTC\n\n");
putenv("TZ=UTC0");
tzset();
argn++;
}
tzset();
printf("timezone=%d\n", TIMEZONE);
printf("daylight=%d\n", DAYLIGHT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment