Skip to content

ZipParameters lastModifiedTime is ignored #434

Closed
@NichtStudioCode

Description

@NichtStudioCode

When adding a folder to a ZipFile using ZipFile#addFolder(File, ZipParameters) with ZipParameters#lastModifiedFileTime configured to some value such as 1, this value is ignored.

I believe that the reason for this behavior can be found here, as the lastModifiedFileTime just gets set to epochToExtendedDosTime((fileToAdd.lastModified())).

Activity

changed the title [-]ZipParameters lastModifiedTime is ignored when adding folder[/-] [+]ZipParameters lastModifiedTime is ignored[/+] on Jun 4, 2022
added 2 commits that reference this issue on Jun 20, 2022

#434 Use last modified file time from ZipParameters

#434 Use system time if last modified file time is not set

srikanth-lingala

srikanth-lingala commented on Jun 20, 2022

@srikanth-lingala
Owner

Issue fixed. I will include the fix in the next release.

srikanth-lingala

srikanth-lingala commented on Jun 20, 2022

@srikanth-lingala
Owner

Fixed in v2.11.0 released today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't workingresolved

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @srikanth-lingala@NichtStudioCode

      Issue actions

        ZipParameters lastModifiedTime is ignored · Issue #434 · srikanth-lingala/zip4j