Merge branch 'fix-file-time' of https://github.com/nothingTVatYT/FlaxEngine into nothingTVatYT-fix-file-time
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -498,7 +498,7 @@ DateTime AppleFileSystem::GetFileLastEditTime(const StringView& path)
|
||||
return DateTime::MinValue();
|
||||
}
|
||||
|
||||
const TimeSpan timeSinceEpoch(0, 0, fileInfo.st_mtime);
|
||||
const TimeSpan timeSinceEpoch(0, 0, 0, fileInfo.st_mtime);
|
||||
return UnixEpoch + timeSinceEpoch;
|
||||
}
|
||||
|
||||
|
||||
@@ -657,7 +657,7 @@ DateTime LinuxFileSystem::GetFileLastEditTime(const StringView& path)
|
||||
return DateTime::MinValue();
|
||||
}
|
||||
|
||||
const TimeSpan timeSinceEpoch(0, 0, fileInfo.st_mtime);
|
||||
const TimeSpan timeSinceEpoch(0, 0, 0, fileInfo.st_mtime);
|
||||
return UnixEpoch + timeSinceEpoch;
|
||||
}
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ DateTime UnixFile::GetLastWriteTime() const
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user