summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/response.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/storage/response.hpp')
-rw-r--r--include/mbgl/storage/response.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp
index 07b059e435..235cb2edd6 100644
--- a/include/mbgl/storage/response.hpp
+++ b/include/mbgl/storage/response.hpp
@@ -38,13 +38,13 @@ public:
optional<std::string> etag;
bool isFresh() const {
- return expires ? *expires > util::now() : !error;
+ return expires ? *expires > std::chrono::system_clock::now() : !error;
}
// Indicates whether we are allowed to use this response according to HTTP caching rules.
// It may or may not be stale.
bool isUsable() const {
- return !mustRevalidate || (expires && *expires > util::now());
+ return !mustRevalidate || (expires && *expires > std::chrono::system_clock::now());
}
};