fs/FileInfo: use std::chrono::system_clock

This commit is contained in:
Max Kellermann
2017-02-10 23:44:51 +01:00
parent 3b7f6641d2
commit 329c3ab21b
5 changed files with 19 additions and 10 deletions

View File

@@ -86,7 +86,7 @@ Stat(Path path, bool follow)
info.type = StorageFileInfo::Type::OTHER;
info.size = src.GetSize();
info.mtime = src.GetModificationTime();
info.mtime = std::chrono::system_clock::to_time_t(src.GetModificationTime());
#ifdef WIN32
info.device = info.inode = 0;
#else