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.
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 thanLastModifiedTime
which returns a localDateTime
.