mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-13 13:35:28 +00:00
[PR #877] Fixed bug in zip time header flags #1303
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/877
State: closed
Merged: Yes
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 thanLastModifiedTimewhich returns a localDateTime.