Skip to content

Commit 61333e2

Browse files
authored
Fix files last modified date (#831)
1 parent 58b2940 commit 61333e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Files/View Models/ItemViewModel.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,8 @@ private void AddFolder(WIN32_FIND_DATA findData, string pathRoot)
852852
systemTimeOutput.Hour,
853853
systemTimeOutput.Minute,
854854
systemTimeOutput.Second,
855-
systemTimeOutput.Milliseconds);
855+
systemTimeOutput.Milliseconds,
856+
DateTimeKind.Utc);
856857
var itemPath = Path.Combine(pathRoot, findData.cFileName);
857858
//var resourceLoader = Windows.ApplicationModel.Resources.ResourceLoader.GetForViewIndependentUse();
858859
//var typeText = resourceLoader.GetString("Folder");
@@ -905,7 +906,8 @@ private void AddFile(WIN32_FIND_DATA findData, string pathRoot)
905906
systemTimeOutput.Hour,
906907
systemTimeOutput.Minute,
907908
systemTimeOutput.Second,
908-
systemTimeOutput.Milliseconds);
909+
systemTimeOutput.Milliseconds,
910+
DateTimeKind.Utc);
909911
long fDataFSize = findData.nFileSizeLow;
910912
long fileSize;
911913
if (fDataFSize < 0 && findData.nFileSizeHigh > 0)

0 commit comments

Comments
 (0)