datetime: Unset TZ after we're done

Just in case we call localtime() for something else...
This commit is contained in:
Bastien Nocera 2011-04-15 04:15:30 +01:00
parent 3746d6e2c5
commit 07e51912e6

View file

@ -236,6 +236,8 @@ tz_info_from_location (TzLocation *loc)
tzinfo->daylight = curzone->tm_isdst;
setenv ("TZ", "", 1);
return tzinfo;
}