So I have a file..
var myFile = C:\docs\MyFile.pptx
and when I noticed that
FileInfo fi = new FileInfo(myfile);
var lastModified = fi.LastWriteTime;
and
var lastModified = File.GetLastWriteTimeUtc(myFile);
are returning different values. Why is this? The FileInfo
value corresponds to the one displayed in Windows Explorer Date Modified column. Why do they differ? I would have expected them to would return exactly the same value.