archive/zip: FileHeader.FileInfo().ModTime() should use Modified #28350
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Since Go 1.10,
archive/zip.FileHeader
contains aModified
field supporting extended timestamps. However,FileHeader.FileInfo()
returns aos.FileInfo
implementation 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,
headerFileInfo
has direct access to theModified
field. Is there a reason why it wasn't included that I am missing, or was it just an oversight?The text was updated successfully, but these errors were encountered: