From 297e3c5996d97ede5b9897720251160f752f1cb1 Mon Sep 17 00:00:00 2001 From: Rajko Stojadinovic Date: Sat, 5 Oct 2019 02:30:59 +0200 Subject: [PATCH] Make windows_file::stat return the same mtime as fs::stat --- Utilities/File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/File.cpp b/Utilities/File.cpp index 337e4b4799..6063ae05d7 100644 --- a/Utilities/File.cpp +++ b/Utilities/File.cpp @@ -966,7 +966,7 @@ fs::file::file(const std::string& path, bs_t mode) info.is_writable = (basic_info.FileAttributes & FILE_ATTRIBUTE_READONLY) == 0; info.size = this->size(); info.atime = to_time(basic_info.LastAccessTime); - info.mtime = to_time(basic_info.ChangeTime); + info.mtime = to_time(basic_info.LastWriteTime); info.ctime = info.mtime; if (info.atime < info.mtime)