From 0f16951f238bd5c78aefd22137692a3803aa2528 Mon Sep 17 00:00:00 2001 From: Dave Rayment Date: Mon, 16 Sep 2024 16:26:26 +0100 Subject: [PATCH] [Peek]Fix for DateModified tooltip property showing file creation date (#34504) --- src/modules/peek/Peek.Common/Models/IFileSystemItem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/peek/Peek.Common/Models/IFileSystemItem.cs b/src/modules/peek/Peek.Common/Models/IFileSystemItem.cs index 0d1e281cb0..a860e0a26c 100644 --- a/src/modules/peek/Peek.Common/Models/IFileSystemItem.cs +++ b/src/modules/peek/Peek.Common/Models/IFileSystemItem.cs @@ -19,7 +19,7 @@ namespace Peek.Common.Models { try { - return string.IsNullOrEmpty(Path) ? null : System.IO.File.GetCreationTime(Path); + return string.IsNullOrEmpty(Path) ? null : System.IO.File.GetLastWriteTime(Path); } catch {