Bug 20411 – wrong default datetime when saving files in zip file
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-11-21T14:15:22Z
Last change time
2019-12-10T13:45:48Z
Keywords
pull
Assigned to
No Owner
Creator
berni44
Comments
Comment #0 by bugzilla — 2019-11-21T14:15:22Z
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.
Comment #1 by dlang-bot — 2019-11-21T14:56:16Z
@berni44 created dlang/phobos pull request #7293 "Fix Issue 20411 - wrong default datetime when saving files in zip file" fixing this issue:
- Fix Issue 20411 - wrong default datetime when saving files in zip file
https://github.com/dlang/phobos/pull/7293