aboutsummaryrefslogtreecommitdiffstats
path: root/http_connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'http_connection.h')
-rw-r--r--http_connection.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/http_connection.h b/http_connection.h
index 99b1fb3..b995523 100644
--- a/http_connection.h
+++ b/http_connection.h
@@ -153,12 +153,12 @@ namespace crow
static std::string get_cached_date_str()
{
using namespace std::chrono;
- thread_local auto last = system_clock::now();
+ thread_local auto last = steady_clock::now();
thread_local std::string date_str = DateTime().str();
- if (system_clock::now() - last >= seconds(1))
+ if (steady_clock::now() - last >= seconds(1))
{
- last = system_clock::now();
+ last = steady_clock::now();
date_str = DateTime().str();
}
return date_str;