[
  {
    "Id": "130208",
    "ThreadId": "39252",
    "Html": "Hi<br>\r\nIs it possible to keep a file's &quot;date modified&quot; property (and perhaps others properties) when adding it to a zip file?<br>\r\n\\Bjarne<br>\r\n",
    "PostedDate": "2008-11-05T06:42:45.103-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "130214",
    "ThreadId": "39252",
    "Html": "<div>You know, I have to admit I am having trouble with the Date Modified thing.<br>\r\nYou would think it would be really easy, wouldn't  you?  Well it hasn't been, not for me anyway. <br>\r\n<br>\r\nIt has to do with the way .NET handles dates and times, which is different than the way the Windows filesystem handles dates and times. I am frustrated that I haven't got this resolved yet. The behavior has changed since the recent daylight-saving-time shift last weekend. </div>\r\n<div></div>\r\n<div>I will have another look at it. <br>\r\n</div>\r\n<div><br>\r\nAside from the last-modified time, what other properties do you want to have preserved? Can you be specific?</div>\r\n",
    "PostedDate": "2008-11-05T07:08:22.293-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "130746",
    "ThreadId": "39252",
    "Html": "Noting in particular - I was just thinking that there might be other file properties that might get changed.<br>\r\nIt don't really need the modified date to be preserved- I just thought it would be nice<br>\r\n\\Bjarne<br>\r\n",
    "PostedDate": "2008-11-07T00:13:38.24-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "543972",
    "ThreadId": "39252",
    "Html": "\r\n<p>I have the following when creating and merging zip files</p>\r\n<p>What the problem is : Don;t know how to preserve the orginal created, modified and accessed time.</p>\r\n<p>Please advise.</p>\r\n<p>Thanks</p>\r\n<p>jhw<span style=\"font-size:x-small\"><span style=\"font-size:x-small\"><span style=\"font-size:x-small\"><span style=\"font-size:x-small\">&nbsp;</span></span></span></span></p>\r\n<p><span style=\"font-size:x-small\"><span style=\"font-size:x-small\"><span style=\"font-size:x-small\">&nbsp;</span></span></span></p>\r\n<p><span style=\"color:#2b91af; font-size:x-small\"><span style=\"color:#2b91af; font-size:x-small\">ZipFile</span></span><span style=\"font-size:x-small\"> zipnew =\r\n</span><span style=\"color:#2b91af; font-size:x-small\"><span style=\"color:#2b91af; font-size:x-small\">ZipFile</span></span><span style=\"font-size:x-small\">.Read(strPath);</span><span style=\"font-size:x-small\"><span style=\"font-size:x-small\">\r\n</span></span></p>\r\n<p><span style=\"font-size:x-small\"><span style=\"color:#2b91af; font-size:x-small\"><span style=\"color:#2b91af; font-size:x-small\">ZipFile</span></span><span style=\"font-size:x-small\"> zipold =\r\n</span><span style=\"color:#0000ff; font-size:x-small\"><span style=\"color:#0000ff; font-size:x-small\">new</span></span><span style=\"font-size:x-small\">\r\n</span><span style=\"color:#2b91af; font-size:x-small\"><span style=\"color:#2b91af; font-size:x-small\">ZipFile</span></span><span style=\"font-size:x-small\">(path);</span></span><span style=\"font-size:x-small\"><span style=\"font-size:x-small\">\r\n<span style=\"font-size:x-small\"></span></span></span></p>\r\n<p><span style=\"font-size:x-small\"><span style=\"font-size:x-small\"><span style=\"font-size:x-small\"></span></span></span><span style=\"font-size:x-small\"><span style=\"font-size:x-small\">{<span style=\"color:#0000ff; font-size:x-small\"><span style=\"color:#0000ff; font-size:x-small\">using</span></span><span style=\"font-size:x-small\">\r\n (System.IO.</span><span style=\"color:#2b91af; font-size:x-small\"><span style=\"color:#2b91af; font-size:x-small\">MemoryStream</span></span><span style=\"font-size:x-small\"> mem =\r\n</span><span style=\"color:#0000ff; font-size:x-small\"><span style=\"color:#0000ff; font-size:x-small\">new</span></span><span style=\"font-size:x-small\"> System.IO.</span><span style=\"color:#2b91af; font-size:x-small\"><span style=\"color:#2b91af; font-size:x-small\">MemoryStream</span></span><span style=\"font-size:x-small\">(</span><span style=\"color:#2b91af; font-size:x-small\"><span style=\"color:#2b91af; font-size:x-small\">Convert</span></span><span style=\"font-size:x-small\">.ToInt32(zenew.UncompressedSize)))</span></span></span></p>\r\n<p>zenew.Extract(mem);</p>\r\n<p><span style=\"color:#0000ff; font-size:x-small\"><span style=\"color:#0000ff; font-size:x-small\">string</span></span><span style=\"font-size:x-small\">fn = zenew.FileName.ToString();</span></p>\r\n<p>zipold.UpdateEntry(fn, mem.ToArray());</p>\r\n<p><span style=\"font-size:x-small\">&nbsp;}</span><span style=\"font-size:x-small\">&nbsp;</span></p>\r\n<p>zipold.Save();</p>\r\n",
    "PostedDate": "2011-01-04T14:35:02.98-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]