Skip to content

Extracted files have 1980-00-00 00:00 timestamp #921

@claraSophos

Description

@claraSophos

Hello, we're having some issues zipping and unzipping files via a tool using Minizip as the extracted files have incorrect timestamps (1980-00-00 00:00)

Versions

  • Working on 4.0.0
  • Broken on 4.0.10

API Calls Used:

  • zipOpenNewFileInZip and zipOpenNewFileInZip3: Used to add files to the archive, passing a zip_fileinfo struct containing timestamp data in its tmz_date member.
  • unzGetCurrentFileInfo64: Used to retrieve file info, including timestamps, from the archive during extraction.
  • Also use the unz_file_info64 struct (specifically the tmu_date member) to set the extracted file's modification time on disk.

Relevant Structs:

  • zip_fileinfo and its member tmz_date
  • unz_file_info64 and its member tmu_date

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions