Virtual ISO: Call tzset before calculating timezone offset

This commit is contained in:
RichardG867
2022-03-29 12:03:28 -03:00
parent a29a6b55db
commit b2f9368253

View File

@@ -805,6 +805,7 @@ next_dir:
/* Get current time for the volume descriptors, and calculate
the timezone offset for descriptors and file times to use. */
tzset();
time_t now = time(NULL);
tz_offset = (now - mktime(gmtime(&now))) / (3600 / 4);