cosmetic fix in utc_minutes_offset when throwing

This commit is contained in:
gabime 2016-07-31 01:52:22 +03:00
parent 74aede0c66
commit 36ba06a75c
1 changed files with 1 additions and 1 deletions

View File

@ -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)