summaryrefslogtreecommitdiff
path: root/src/mbgl/util/http_header.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/util/http_header.cpp')
-rw-r--r--src/mbgl/util/http_header.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/util/http_header.cpp b/src/mbgl/util/http_header.cpp
index cdb4759d51..9777a2c806 100644
--- a/src/mbgl/util/http_header.cpp
+++ b/src/mbgl/util/http_header.cpp
@@ -1,5 +1,6 @@
#include <mbgl/util/http_header.hpp>
+#include <mbgl/util/chrono.hpp>
#include <mbgl/util/string.hpp>
#include <boost/spirit/include/qi.hpp>
@@ -31,7 +32,7 @@ optional<Timestamp> parseRetryHeaders(const optional<std::string>& retryAfter,
if (retryAfter) {
try {
auto secs = std::chrono::seconds(std::stoi(*retryAfter));
- return std::chrono::time_point_cast<Seconds>(std::chrono::system_clock::now() + secs);
+ return std::chrono::time_point_cast<Seconds>(util::now() + secs);
} catch (...) {
return util::parseTimestamp((*retryAfter).c_str());
}