[Issue 20411] New: wrong default datetime when saving files in zip file

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 21 14:15:22 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20411

          Issue ID: 20411
           Summary: wrong default datetime when saving files in zip file
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at d-ecke.de

Using the "Example for writing files into a zip archive" (test.d) given at the
top of std.zip:

$> rdmd test.d 
$> unzip -l test.zip 
Archive:  test.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
       11  1980-00-00 00:00   test1.txt
       16  1980-00-00 00:00   test2.txt
---------                     -------
       27                     2 files

The saved datetime is invalid and furthermore according to the specs it should
be set to the current time, if no explicit time is provided.

--


More information about the Digitalmars-d-bugs mailing list