1
0
mirror of https://github.com/golang/go synced 2024-11-06 01:36:10 -07:00
go/src/archive
Joe Tsai 35220534d5 archive/zip: only use Extended Timestamp on non-zero MS-DOS timestamps
We should preserve the fact that a roundtrip read on fields with the zero
value should remain the zero for those that are reasonable to stay that way.
If the zero value for a MS-DOS timestamp was used, then it is sensible for
that zero value to also be read back later.

Fixes #17403

Change-Id: I32c3915eab180e91ddd2499007374f7b85f0bd76
Reviewed-on: https://go-review.googlesource.com/30811
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-10-11 21:31:25 +00:00
..
tar archive/tar: move parse/format functionality into strconv.go 2016-09-29 18:38:28 +00:00
zip archive/zip: only use Extended Timestamp on non-zero MS-DOS timestamps 2016-10-11 21:31:25 +00:00