Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug in zip time header flags #877

Merged
merged 2 commits into from
Nov 1, 2024

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.

@adamhathcock adamhathcock merged commit ceddab9 into adamhathcock:master Nov 1, 2024
2 checks passed
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