Keep the timestamps when extracting the zip file

Features wanted...
Post Reply
chocolatebarmutton
Posts: 11
Joined: 11 Aug 2021 21:29

Keep the timestamps when extracting the zip file

Post 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
To see the attached files, you need to log into the forum.

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Keep the timestamps when extracting the zip file

Post 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
One of my scripts helped you out? Please donate via Paypal

chocolatebarmutton
Posts: 11
Joined: 11 Aug 2021 21:29

Re: Keep the timestamps when extracting the zip file

Post by chocolatebarmutton »

highend wrote: 19 Aug 2021 21:49

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
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.
To see the attached files, you need to log into the forum.

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Keep the timestamps when extracting the zip file

Post by highend »

You aren't even using 7z because you didn't add .zip to ZipExtWinRAR=...
One of my scripts helped you out? Please donate via Paypal

chocolatebarmutton
Posts: 11
Joined: 11 Aug 2021 21:29

Re: Keep the timestamps when extracting the zip file

Post 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.

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Keep the timestamps when extracting the zip file

Post by highend »

XY is using the inbuilt Windows function to unzip .zip archives so there isn't anything to fix. Blame MS.
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1374
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Keep the timestamps when extracting the zip file

Post by Horst »

Who uses any internal zip when there is 7zip or WinRAR available.
Windows 11 Home, Version 25H2 (OS Build 26200.8457)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1412b (x64), Everything Toolbar 2.3.0, Listary Pro 6.3.6.99

Post Reply