diff options
author | louiz’ <louiz@louiz.org> | 2019-09-23 22:08:48 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2019-09-23 22:08:48 +0200 |
commit | b7b54d8f0e08107508e7d74666a1bfb00e06aa5d (patch) | |
tree | 04dca156ee40f134168d2eb2c15afceebe7ca2ad /src | |
parent | 7c660c3f3985cfeed209555c4467dcd5dbd49744 (diff) | |
download | biboumi-b7b54d8f0e08107508e7d74666a1bfb00e06aa5d.tar.gz biboumi-b7b54d8f0e08107508e7d74666a1bfb00e06aa5d.tar.bz2 biboumi-b7b54d8f0e08107508e7d74666a1bfb00e06aa5d.tar.xz biboumi-b7b54d8f0e08107508e7d74666a1bfb00e06aa5d.zip |
Trivial cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/time.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/time.cpp b/src/utils/time.cpp index 2812c72..d848e70 100644 --- a/src/utils/time.cpp +++ b/src/utils/time.cpp @@ -3,7 +3,6 @@ #include <sstream> #include <iomanip> -#include <locale> #include "biboumi.h" @@ -12,7 +11,7 @@ namespace utils std::string to_string(const std::chrono::system_clock::time_point::rep& time) { constexpr std::size_t stamp_size = 21; - const std::time_t timestamp = static_cast<std::time_t>(time); + const auto timestamp = static_cast<std::time_t>(time); char date_buf[stamp_size]; struct tm tm; if (std::strftime(date_buf, stamp_size, "%FT%TZ", gmtime_r(×tamp, &tm)) != stamp_size - 1) |