storage/FileInfo: convert mtime to std::chrono::system_clock::time_point
This commit is contained in:
@@ -111,7 +111,7 @@ GetInfo(const char *path)
|
||||
info.type = StorageFileInfo::Type::OTHER;
|
||||
|
||||
info.size = st.st_size;
|
||||
info.mtime = st.st_mtime;
|
||||
info.mtime = std::chrono::system_clock::from_time_t(st.st_mtime);
|
||||
info.device = st.st_dev;
|
||||
info.inode = st.st_ino;
|
||||
return info;
|
||||
|
Reference in New Issue
Block a user