Version
0.6.1
Description
Files extracted from a zip have the modified time updated to a value 6 hours in the past. I'm in UTC-6, so the time being read from the extracted file seems to be interpreted as UTC time rather than local time.
Attached are an empty file (test.orig.txt), an archive with that file (test.zip), the extracted result from ouch (test.ouch.txt) and the extracted result from unzip, which has the correct modified time (test.unzip.txt).
Current Behavior
Here's the relevant stat output:
> stat test.orig.txt
File: test.orig.txt
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 259,9 Inode: 11947048 Links: 1
Modify: 2026-02-07 10:06:50.918485119 -0600
Birth: 2026-02-07 10:06:50.918485119 -0600
> stat test.ouch.txt
File: test.ouch.txt
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 259,9 Inode: 16384698 Links: 1
Modify: 2026-02-07 04:06:50.000000000 -0600
Birth: 2026-02-07 10:07:18.766744263 -0600
Expected Behavior
I would expect the same output that unzip gives:
> stat test.unzip.txt
File: test.unzip.txt
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 259,9 Inode: 11962158 Links: 1
Modify: 2026-02-07 10:06:50.000000000 -0600
Birth: 2026-02-07 10:07:31.198860767 -0600
Additional Information
Here's the unzip version, in case it's relevant:
> unzip --version
UnZip 6.00 of 20 April 2009, by Debian. Original by Info-ZIP.
Thanks for ouch!!
test.orig.txt
test.ouch.txt
test.unzip.txt
test.zip
Version
0.6.1
Description
Files extracted from a zip have the modified time updated to a value 6 hours in the past. I'm in UTC-6, so the time being read from the extracted file seems to be interpreted as UTC time rather than local time.
Attached are an empty file (
test.orig.txt), an archive with that file (test.zip), the extracted result fromouch(test.ouch.txt) and the extracted result fromunzip, which has the correct modified time (test.unzip.txt).Current Behavior
Here's the relevant
statoutput:Expected Behavior
I would expect the same output that
unzipgives:Additional Information
Here's the
unzipversion, in case it's relevant:Thanks for
ouch!!test.orig.txt
test.ouch.txt
test.unzip.txt
test.zip