diff options
author | Joao Matos <joao@tritao.eu> | 2016-05-27 15:03:57 +0300 |
---|---|---|
committer | Joao Matos <joao@tritao.eu> | 2016-05-27 15:03:57 +0300 |
commit | b977ec8ef9a6795352e2b1cd0c4173b1a66e4ee1 (patch) | |
tree | e943a7bfe5bce074eb62f1a0ef9980566a085260 /mcs/class/System.IO.Compression | |
parent | 2261009c646112df17270221e7cc78fdee72c9d6 (diff) |
[System.IO.Compression.FileSystem] Fixed date time when creating Zip entries from filesystem files.
Diffstat (limited to 'mcs/class/System.IO.Compression')
-rw-r--r-- | mcs/class/System.IO.Compression/SharpCompress/Archive/Zip/ZipWritableArchiveEntry.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mcs/class/System.IO.Compression/SharpCompress/Archive/Zip/ZipWritableArchiveEntry.cs b/mcs/class/System.IO.Compression/SharpCompress/Archive/Zip/ZipWritableArchiveEntry.cs index acb5e2ddc29..f19a9c27647 100644 --- a/mcs/class/System.IO.Compression/SharpCompress/Archive/Zip/ZipWritableArchiveEntry.cs +++ b/mcs/class/System.IO.Compression/SharpCompress/Archive/Zip/ZipWritableArchiveEntry.cs @@ -10,7 +10,6 @@ namespace SharpCompress.Archive.Zip { private readonly string path; private readonly long size; - private readonly DateTime? lastModified; private readonly bool closeStream; private readonly Stream stream; private bool isDisposed; @@ -22,7 +21,7 @@ namespace SharpCompress.Archive.Zip this.stream = stream; this.path = path; this.size = size; - this.lastModified = lastModified; + this.LastModifiedTime = lastModified; this.closeStream = closeStream; } @@ -46,11 +45,6 @@ namespace SharpCompress.Archive.Zip get { return size; } } - public override DateTime? LastModifiedTime - { - get { return lastModified; } - } - public override DateTime? CreatedTime { get { return null; } |