From b2f936825360a4ee5408ff3682ce0cab59b859ff Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 29 Mar 2022 12:03:28 -0300 Subject: [PATCH] Virtual ISO: Call tzset before calculating timezone offset --- src/cdrom/cdrom_image_viso.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cdrom/cdrom_image_viso.c b/src/cdrom/cdrom_image_viso.c index d643aa00e..9e0bf9322 100644 --- a/src/cdrom/cdrom_image_viso.c +++ b/src/cdrom/cdrom_image_viso.c @@ -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);