Skip to content

Commit

Permalink
cosmetic fix in utc_minutes_offset when throwing
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Jul 30, 2016
1 parent 74aede0 commit 36ba06a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/spdlog/details/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 36ba06a

Please sign in to comment.