digitalmars.D.bugs - [Issue 20411] New: wrong default datetime when saving files in zip
- d-bugmail puremagic.com (27/27) Nov 21 2019 https://issues.dlang.org/show_bug.cgi?id=20411
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 puremagic.com Reporter: bugzilla 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. --
Nov 21 2019