aboutsummaryrefslogtreecommitdiff
path: root/src/common/time_zone.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-12 18:44:07 -0400
committerbunnei <bunneidev@gmail.com>2020-05-12 18:44:07 -0400
commit053399a55325758ebc607abaff3598b2e9bba2c3 (patch)
tree27d598aa2ad461f0668702d59abb5d61b3ff5bd0 /src/common/time_zone.h
parentf42b9c0a8554027a280238531102c687cbbc4a76 (diff)
time_zone: Use std::chrono::seconds for strong typing.
Diffstat (limited to 'src/common/time_zone.h')
-rw-r--r--src/common/time_zone.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/time_zone.h b/src/common/time_zone.h
index b7aa1bb108..945daa09ce 100644
--- a/src/common/time_zone.h
+++ b/src/common/time_zone.h
@@ -4,6 +4,7 @@
#pragma once
+#include <chrono>
#include <string>
namespace Common::TimeZone {
@@ -12,6 +13,6 @@ namespace Common::TimeZone {
std::string GetDefaultTimeZone();
/// Gets the offset of the current timezone (from the default), in seconds
-int GetCurrentOffsetSeconds();
+std::chrono::seconds GetCurrentOffsetSeconds();
} // namespace Common::TimeZone