go/src/archive/zip
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
..
testdata archive/zip: handle mtime in NTFS/UNIX/ExtendedTS extra fields 2016-10-06 19:05:52 +00:00
example_test.go archive/zip: clarify expectations of RegisterCompressor and RegisterDecompressor 2016-01-27 00:22:03 +00:00
reader.go archive/zip: handle mtime in NTFS/UNIX/ExtendedTS extra fields 2016-10-06 19:05:52 +00:00
reader_test.go archive/zip: handle mtime in NTFS/UNIX/ExtendedTS extra fields 2016-10-06 19:05:52 +00:00
register.go archive/zip: pool flate readers 2016-05-04 14:28:27 +00:00
struct.go archive/zip: only use Extended Timestamp on non-zero MS-DOS timestamps 2016-10-11 21:31:25 +00:00
writer.go archive/zip: only use Extended Timestamp on non-zero MS-DOS timestamps 2016-10-11 21:31:25 +00:00
writer_test.go archive/zip: handle mtime in NTFS/UNIX/ExtendedTS extra fields 2016-10-06 19:05:52 +00:00
zip_test.go archive/zip: only use Extended Timestamp on non-zero MS-DOS timestamps 2016-10-11 21:31:25 +00:00