[
  {
    "Id": "447166",
    "ThreadId": "213784",
    "Html": "<p>The project I'm working on requires us to modify a few files and add a file to an existing zip which will be vended to customers.&nbsp; For piracy-related reasons we're going to drop a piece of data in one file (non-user identifiable) in case we find any vended files out in the wild.&nbsp; It happens that all the files in the zip have a modified date but have no value for created date or accessed date.&nbsp; We would rather not call attention to the file(s) we've modified inside the zip for obvious reasons, but I haven't found a way to set the CreationTime or AccessedTime values to null for a given file within the zip.&nbsp; Based on DotNetZip's usage of the LastModified property is it even possible for me to set null values for CreationTime or AccessedTime?&nbsp; If so, any information you can give me on how is much appreciated.</p>",
    "PostedDate": "2010-05-25T08:59:41.417-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "447305",
    "ThreadId": "213784",
    "Html": "<p>Yes, I think so - you can use ZipEntry.SetEntryTimes().&nbsp; This method is present in v1.9 of the library.</p>\r\n<p><a href=\"http://cheeso.members.winisp.net/DotNetZipHelp/html/88576536-a56e-907b-fe2f-389dfcbf08b6.htm\">http://cheeso.members.winisp.net/DotNetZipHelp/html/88576536-a56e-907b-fe2f-389dfcbf08b6.htm</a></p>\r\n<p>You don't want &quot;null&quot;.&nbsp;&nbsp;The DateTime is a structure if I'm not mistaken, so null is not a valid value.&nbsp; &nbsp;Maybe you want new System.DateTime(1, 1, 1, 0, 0, 0, DateTimeKind.Utc);&nbsp;&nbsp; Or some other &quot;fixed time.&quot;&nbsp;</p>\r\n<p>The next question is, do you want the times to be emitted in a high-resolution &quot;NTFS&quot; format?&nbsp; That happens by default in v1.9.&nbsp; If you just want to the &quot;DOS&quot; time, then you can set ZipEntry.EmitTimesInWindowsFormatWhenSaving to false (there's also a similar property on ZipFile). &nbsp;<a href=\"http://cheeso.members.winisp.net/DotNetZipHelp/html/8bd70698-b52a-fcdc-ddc1-cc8a2c0db5fb.htm\">&nbsp;http://cheeso.members.winisp.net/DotNetZipHelp/html/8bd70698-b52a-fcdc-ddc1-cc8a2c0db5fb.htm</a></p>\r\n<p>In that case no Creation or Access time is stored for the entry.&nbsp; Read the doc for more info.</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-05-25T14:11:06.363-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "447655",
    "ThreadId": "213784",
    "Html": "<p>Thanks, Cheeso.&nbsp; Setting EmitTimesInWindowsFormatWhenSaving to false gave me the results I was after.&nbsp; Much appreciated.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-05-26T07:21:43.623-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]