summaryrefslogtreecommitdiff
path: root/src/db/update/Archive.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/update/Archive.cxx')
-rw-r--r--src/db/update/Archive.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/update/Archive.cxx b/src/db/update/Archive.cxx
index d6fb77d21..6004ed835 100644
--- a/src/db/update/Archive.cxx
+++ b/src/db/update/Archive.cxx
@@ -137,7 +137,7 @@ UpdateWalk::UpdateArchiveFile(Directory &parent, const char *name,
{
Directory *directory = LockFindChild(parent, name);
- if (directory != nullptr && directory->mtime == std::chrono::system_clock::to_time_t(info.mtime) &&
+ if (directory != nullptr && directory->mtime == info.mtime &&
!walk_discard)
/* MPD has already scanned the archive, and it hasn't
changed since - don't consider updating it */
@@ -173,7 +173,7 @@ UpdateWalk::UpdateArchiveFile(Directory &parent, const char *name,
directory->device = DEVICE_INARCHIVE;
}
- directory->mtime = std::chrono::system_clock::to_time_t(info.mtime);
+ directory->mtime = info.mtime;
UpdateArchiveVisitor visitor(*this, *file, directory);
file->Visit(visitor);