siranwu / theunarchiver

Automatically exported from code.google.com/p/theunarchiver
Other
0 stars 0 forks source link

The Archive Browser does not display a filetime of 0 correctly in a GZIP archive #803

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The Archive Browser does not handle a filetime (mtime) of 0 correctly in a GZIP 
archive.

In the attached, the archive has a filetime of 0. The Archive Browser displays 
it as Wednesday, December 31, 1969 7:00 PM (that's January 1, 1970 adjusted 
with -5:00 for my timezone (EST or Eastern Standard US)).

According to RFC 1952 (https://www.ietf.org/rfc/rfc1952.txt):

    MTIME (Modification TIME)

        This gives the most recent modification time of the original
        file being compressed.  The time is in Unix format, i.e.,
        seconds since 00:00:00 GMT, Jan.  1, 1970.  (Note that this
        may cause problems for MS-DOS and other systems that use
        local rather than Universal time.)  If the compressed data
        did not come from a file, MTIME is set to the time at which
        compression started.  MTIME = 0 means no time stamp is
        available.

Expected results:

I expect The Archive Browser to display the filetime as "No time information 
available" or similar since the filetime (mtime) is 0.

-----

I'm working on OX S 10.8.5 x64 (fully patched) with The Archive Browser 1.9.1 
(fully patched).

-----

My apologies if this is the wrong forum for The Archive Browser issues. Archive 
Browser -> About lists this project as the point of contact.

Original issue reported on code.google.com by noloa...@gmail.com on 3 Jan 2015 at 11:41

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by paracel...@gmail.com on 21 Jul 2015 at 8:54

GoogleCodeExporter commented 9 years ago

Original comment by paracel...@gmail.com on 21 Jul 2015 at 8:54

GoogleCodeExporter commented 9 years ago
Good job. Thank you very much.

Original comment by noloa...@gmail.com on 21 Jul 2015 at 8:59