Skip to content

Fixed bug in zip time header flags#877

Merged
adamhathcock merged 2 commits intoadamhathcock:masterfrom
StarkDirewolf:master
Nov 1, 2024
Merged

Fixed bug in zip time header flags#877
adamhathcock merged 2 commits intoadamhathcock:masterfrom
StarkDirewolf:master

Conversation

@StarkDirewolf
Copy link
Contributor

Parsing the times in the zip headers worked, but the flag check was wrong, so only modified time was ever parsed. Corrected this in a more readable way.

Also stopped exceptions being thrown if there was an issue during this header parsing, returning null values instead.

Remarks have been added to highlight that they return UTC DateTime's, rather than LastModifiedTime which returns a local DateTime.

@adamhathcock
Copy link
Owner

Looks good, thanks!

@adamhathcock
Copy link
Owner

Needs a format it seems: dotnet csharpier .

auto-merge was automatically disabled October 31, 2024 17:35

Head branch was pushed to by a user without write access

@StarkDirewolf
Copy link
Contributor Author

Ah, thanks for letting me know :) Pushed the styling change.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants