using SharpZipLib in C#, I'm using:
// ..
ZipEntry entry = new ZipEntry(Path.GetFileName(files[i].fullfilename));
entry.DateTime =files[i].datemodified //has everything including milliseconds
//.. some more code which i'm not writing
The zip file gets created just fine, but when i unzip it using any 3rd party decompresser, I see that the file has lost its milliseconds information in the file's modified date (milliseconds info is very important to me). I saw the code for ZipEntry, and its DateTime property: https://github.com/icsharpcode/SharpZipLib/blob/c49a22d70a77819b1dc88309c91e99565aa9099b/src/Zip/ZipEntry.cs#L695
you see that what gets written in the zip file as a datetime for this entry is: https://github.com/icsharpcode/SharpZipLib/blob/c49a22d70a77819b1dc88309c91e99565aa9099b/src/Zip/ZipOutputStream.cs#L344 which is a int cast of the ms dos format time. Can someone please help tell me how do I write this so that the final zipped file contains everything in its modified datetime that was in my original DateTime that I got from "LastWriteTime" of fileinfo.
Thanks.