[ruby/zlib] Fix setting mtime to zero in GzipWriter
Before this change, it was not possible to write out zero for the
timestamp part of a Gzip file's header, as calling GzipWriter#mtime with
zero was ignored.
Judging from the docs for GzipWriter#mtime=, it should be possible to
indicate that no timestamp is available by calling the method with zero.
[ruby/zlib] Fix setting mtime to zero in GzipWriter
Before this change, it was not possible to write out zero for the
timestamp part of a Gzip file's header, as calling GzipWriter#mtime with
zero was ignored.
Judging from the docs for
GzipWriter#mtime=
, it should be possible toindicate that no timestamp is available by calling the method with zero.
https://github.com/ruby/zlib/commit/310be39cac