datetime: Unset TZ after we're done
Just in case we call localtime() for something else...
This commit is contained in:
parent
3746d6e2c5
commit
07e51912e6
1 changed files with 2 additions and 0 deletions
|
@ -235,6 +235,8 @@ tz_info_from_location (TzLocation *loc)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
tzinfo->daylight = curzone->tm_isdst;
|
tzinfo->daylight = curzone->tm_isdst;
|
||||||
|
|
||||||
|
setenv ("TZ", "", 1);
|
||||||
|
|
||||||
return tzinfo;
|
return tzinfo;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue