summaryrefslogtreecommitdiff
path: root/src/storage/plugins/CurlStorage.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-02-11 22:47:05 +0100
committerMax Kellermann <max@musicpd.org>2017-02-11 23:45:15 +0100
commit6636c69a11e8b4d8aa079d86ef89fb8dbf96964e (patch)
treec12f3b7fc987ca4fe165603f7c333d2b09dfa46c /src/storage/plugins/CurlStorage.cxx
parent0ccaf4a1fff8933b28312d40ccf45a2a9fae2018 (diff)
storage/FileInfo: convert mtime to std::chrono::system_clock::time_point
Diffstat (limited to 'src/storage/plugins/CurlStorage.cxx')
-rw-r--r--src/storage/plugins/CurlStorage.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/storage/plugins/CurlStorage.cxx b/src/storage/plugins/CurlStorage.cxx
index 072787bc3..24b5709a1 100644
--- a/src/storage/plugins/CurlStorage.cxx
+++ b/src/storage/plugins/CurlStorage.cxx
@@ -418,9 +418,7 @@ protected:
? StorageFileInfo::Type::DIRECTORY
: StorageFileInfo::Type::REGULAR;
info.size = r.length;
- info.mtime = !IsNegative(r.mtime)
- ? std::chrono::system_clock::to_time_t(r.mtime)
- : 0;
+ info.mtime = r.mtime;
}
};
@@ -514,9 +512,7 @@ protected:
? StorageFileInfo::Type::DIRECTORY
: StorageFileInfo::Type::REGULAR);
info.size = r.length;
- info.mtime = !IsNegative(r.mtime)
- ? std::chrono::system_clock::to_time_t(r.mtime)
- : 0;
+ info.mtime = r.mtime;
}
};