diff options
author | Max Kellermann <max@musicpd.org> | 2017-01-18 13:19:13 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-08-18 12:22:47 +0200 |
commit | b886dfae4d4a4d5ca49fd1323e18bae0e78dfab1 (patch) | |
tree | dae868d33c44c9c411d6ab7d94b1738f13dd7d37 /src/SongUpdate.cxx | |
parent | 902fbb33471b07c3ab9bf62d13927f2db46e35f5 (diff) |
DetachedSong, db/LightSong, db/simple/Song: use std::chrono::system_clock::time_point
Diffstat (limited to 'src/SongUpdate.cxx')
-rw-r--r-- | src/SongUpdate.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index 0c976b883..6eb76a9bd 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -88,7 +88,7 @@ Song::UpdateFile(Storage &storage) return false; } - mtime = std::chrono::system_clock::to_time_t(info.mtime); + mtime = info.mtime; tag_builder.Commit(tag); return true; } @@ -151,7 +151,7 @@ DetachedSong::LoadFile(Path path) if (!tag_file_scan(path, tag_builder)) return false; - mtime = std::chrono::system_clock::to_time_t(fi.GetModificationTime()); + mtime = fi.GetModificationTime(); tag_builder.Commit(tag); return true; } @@ -171,7 +171,7 @@ DetachedSong::Update() if (!tag_stream_scan(uri.c_str(), tag_builder)) return false; - mtime = 0; + mtime = std::chrono::system_clock::time_point::min(); tag_builder.Commit(tag); return true; } else |