Merge branch 'fix-file-time' of https://github.com/nothingTVatYT/FlaxEngine into nothingTVatYT-fix-file-time

This commit is contained in:
Wojtek Figat
2024-01-05 10:41:05 +01:00
4 changed files with 4 additions and 4 deletions

View File

@@ -517,7 +517,7 @@ DateTime AndroidFileSystem::GetFileLastEditTime(const StringView& path)
const StringAsANSI<> pathANSI(*path, path.Length());
if (stat(pathANSI.Get(), &fileInfo) == -1)
return DateTime::MinValue();
const TimeSpan timeSinceEpoch(0, 0, fileInfo.st_mtime);
const TimeSpan timeSinceEpoch(0, 0, 0, fileInfo.st_mtime);
const DateTime UnixEpoch(1970, 1, 1);
return UnixEpoch + timeSinceEpoch;
}