From 36ba06a75c4f29ceb21348ed30ef9c0f9abe4f99 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 31 Jul 2016 01:52:22 +0300 Subject: [PATCH] cosmetic fix in utc_minutes_offset when throwing --- include/spdlog/details/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h index 2379f32d..d188581a 100644 --- a/include/spdlog/details/os.h +++ b/include/spdlog/details/os.h @@ -239,7 +239,7 @@ inline int utc_minutes_offset(const std::tm& tm = details::os::localtime()) auto rv = GetDynamicTimeZoneInformation(&tzinfo); #endif if (rv == TIME_ZONE_ID_INVALID) - throw spdlog::spdlog_ex("Failed getting timezone info. Last error: " + std::to_string(GetLastError())); + throw spdlog::spdlog_ex("Failed getting timezone info. ", errno); int offset = -tzinfo.Bias; if (tm.tm_isdst)