Since Go 1.10, archive/zip.FileHeader contains a Modified field supporting extended timestamps. However, FileHeader.FileInfo() returns a os.FileInfo implementation whose ModTime() method still returns the legacy mod time. This should be changed to return Modified. A hint documenting that FileInfo() uses legacy fields would be nice for the time being.
As far as I can tell, headerFileInfo has direct access to the Modified field. Is there a reason why it wasn't included that I am missing, or was it just an oversight?
Since Go 1.10,
archive/zip.FileHeadercontains aModifiedfield supporting extended timestamps. However,FileHeader.FileInfo()returns aos.FileInfoimplementation whoseModTime()method still returns the legacy mod time. This should be changed to return Modified. A hint documenting thatFileInfo()uses legacy fields would be nice for the time being.As far as I can tell,
headerFileInfohas direct access to theModifiedfield. Is there a reason why it wasn't included that I am missing, or was it just an oversight?