While that issue was stating that extracting a zip would ignore the last modified datetime information in the zip file (or 7zip, tar, …) itself, also the opposite is true.
So, if I zip a folder or file, the last modified datetime is ignored and inside the created compressed file I see “now” as last modified datetime for each entry.
It appears that when you create a ZIP file using Aspose.Zip, the last modified timestamps of the files are set to the current date and time, rather than preserving the original timestamps of the files being zipped. This behavior has been noted by other users as well, where the modified date of files extracted from a ZIP archive also reflects the current datetime instead of the original modified time.
One user raised a similar concern about the inability to retrieve the original modified time after extracting files, and this issue was logged for further investigation. The Aspose team acknowledged the requirement and has made efforts to address it in their updates.
If preserving the original timestamps is critical for your use case, you might want to consider using alternative libraries or methods that maintain the original file metadata during the zipping process. For instance, some users have switched to using System.IO.Compression in .NET, which allows for the original timestamps to be preserved when creating ZIP files.
For more detailed discussions and updates on this topic, you can refer to the following posts:
A user reported the issue of modified dates being set to the current datetime after extraction, which led to a ticket being logged for further investigation [1].
Another discussion highlighted that Aspose.Zip does keep creation and last modified times, but the last accessed time is set to the time of zipping [2].
A user expressed the need for the ZIP archive to reflect the original timestamps, indicating that the current behavior does not meet their requirements [3].
@mrossi
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): ZIPNET-864
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.