Use ftLastWriteTime instead
authorRobert Pengelly <robertapengelly@hotmail.com>
Sat, 28 Feb 2026 07:59:08 +0000 (07:59 +0000)
committerRobert Pengelly <robertapengelly@hotmail.com>
Sat, 28 Feb 2026 07:59:08 +0000 (07:59 +0000)
tar.c

diff --git a/tar.c b/tar.c
index 645a68241b4167d6902e902acc3a4c56a608ccd2..b2f3d8b5b9d3004d9a2d3e4591604591589a4998 100755 (executable)
--- a/tar.c
+++ b/tar.c
@@ -483,7 +483,7 @@ static uint64_t CreationTime (LPCTSTR szPath) {
     WIN32_FILE_ATTRIBUTE_DATA fileInfo;
     
     if (GetFileAttributesEx (szPath, GetFileExInfoStandard, &fileInfo)) {
-        return FileTimeToUnixTime (fileInfo.ftCreationTime);
+        return FileTimeToUnixTime (fileInfo.ftLastWriteTime);
     }
     
     return 0;