Permalink
Browse files

Set LastWriteTime of files extracted from zip

  • Loading branch information...
1 parent bcb32e7 commit 0972d9f1742c29691cb92d90b2691e5ea3458c55 @duncansmart duncansmart committed Aug 29, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 Kudu.Core/Infrastructure/ZipArchiveExtensions.cs
View
2 Kudu.Core/Infrastructure/ZipArchiveExtensions.cs
@@ -116,6 +116,8 @@ public static void Extract(this ZipArchive archive, string directoryName)
{
zipStream.CopyTo(fileStream);
}
+
+ fileInfo.LastWriteTimeUtc = entry.LastWriteTime.ToUniversalTime().DateTime;
}
}
}

0 comments on commit 0972d9f

Please sign in to comment.