Page 1 of 1
Keep the timestamps when extracting the zip file
Posted: 19 Aug 2021 20:40
by chocolatebarmutton
I extracted the xyplorer_full.zip with XYplorer and the timestamps are not the same as in the zip file. There is also no option in the settings to change this behavior.
Timestamp.PNG
A comparison with WinRAR. WinRAR can keep the timestamps in the .zip file after extracting.
WinRAR.PNG
WinRAR 2.PNG
zip file:
https://www.xyplorer.com/download/xyplorer_full.zip
Re: Keep the timestamps when extracting the zip file
Posted: 19 Aug 2021 21:49
by highend
Code: Select all
ZipExtWinRAR=.7z.ace.arj.bz2.cab.gz.iso.jar.lzh.rar.tar.uue.xz.z.zip.
ZipPath7zip=<path to 7zip>\7z.exe
ZipExtractUse7zip=1
https://www.xyplorer.com/faq-topic.php?id=tweak
Re: Keep the timestamps when extracting the zip file
Posted: 20 Aug 2021 15:51
by chocolatebarmutton
The tweak does not work completely. I tried it and only the date of Modified is correct, but the clock time is wrong. Created just took the timestamp from Modified and not from the .zip file.
Timestamp 2.PNG
If I do the same with a .rar file there are no problems. It looks like the developers of XYplorer did not configure the 7z.exe correctly for the tweak.
Timestamp 3.PNG
I have discovered 2 problems only for the tweak with 7z.exe:
- Created was not kept and uses the same timestamp as Modified.
- Modified only kept the date, but not the clock time. But it seems that the clock time is correct but in a different time zone, it may be that XYplorer does not use the time zone of Windows system that the user has set.
Re: Keep the timestamps when extracting the zip file
Posted: 20 Aug 2021 16:06
by highend
You aren't even using 7z because you didn't add .zip to ZipExtWinRAR=...
Re: Keep the timestamps when extracting the zip file
Posted: 20 Aug 2021 18:35
by chocolatebarmutton
highend wrote: ↑20 Aug 2021 16:06
You aren't even using 7z because you didn't add .zip to
ZipExtWinRAR=...
That worked. I did not realize that have to enter
zip.
The default value was this:
Code: Select all
ZipExtWinRAR=.7z.ace.arj.bz2.cab.gz.iso.jar.lzh.rar.tar.uue.xz.z.
For it to work, this value must look like this:
ZipExtWinRAR=.7z.ace.arj.bz2.cab.gz.iso.jar.lzh.rar.tar.uue.xz.z.
zip.
That means the 2 problems I discovered are not for 7z.exe but for XYplorer internal zip function. XYplorer internal zip function has these 2 problems and it should be fixed soon so I have no more confusion after extracting .zip files.
Re: Keep the timestamps when extracting the zip file
Posted: 20 Aug 2021 18:54
by highend
XY is using the inbuilt Windows function to unzip .zip archives so there isn't anything to fix. Blame MS.
Re: Keep the timestamps when extracting the zip file
Posted: 20 Aug 2021 18:58
by Horst
Who uses any internal zip when there is 7zip or WinRAR available.