From 4099cb30168b3cdfadf786d80d3878e096548458 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 31 Aug 2024 11:49:42 +0300 Subject: [PATCH] Make Time::format_now use the local timezone --- source/time/utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/time/utils.cpp b/source/time/utils.cpp index 52c8934..0b2b165 100644 --- a/source/time/utils.cpp +++ b/source/time/utils.cpp @@ -1,5 +1,6 @@ #include "datetime.h" #include "timestamp.h" +#include "timezone.h" #include "utils.h" using namespace std; @@ -9,7 +10,7 @@ namespace Time { string format_now(const string &fmt) { - return DateTime(now()).format(fmt); + return DateTime(now(), TimeZone::local()).format(fmt); } } // namespace Time -- 2.45.2