diff --git a/src/format_time_summary.cpp b/src/format_time_summary.cpp index 4ef730398c75..8dcf38ebd595 100644 --- a/src/format_time_summary.cpp +++ b/src/format_time_summary.cpp @@ -22,19 +22,19 @@ namespace utils { std::string format_time_summary(std::time_t t) { std::time_t curtime = std::time(nullptr); - const struct tm* timeptr = std::localtime(&curtime); + const std::tm* timeptr = std::localtime(&curtime); if(timeptr == nullptr) { return ""; } - const struct tm current_time = *timeptr; + const std::tm current_time = *timeptr; timeptr = std::localtime(&t); if(timeptr == nullptr) { return ""; } - const struct tm save_time = *timeptr; + const std::tm save_time = *timeptr; std::string format_string; diff --git a/src/gui/dialogs/debug_clock.cpp b/src/gui/dialogs/debug_clock.cpp index 027b0e962b08..0f1d61616163 100644 --- a/src/gui/dialogs/debug_clock.cpp +++ b/src/gui/dialogs/debug_clock.cpp @@ -174,7 +174,7 @@ debug_clock::time::time() : hour(0), minute(0), second(0), millisecond(0) void debug_clock::time::set_current_time() { std::time_t now = ::std::time(nullptr); - tm* stamp = std::localtime(&now); + std::tm* stamp = std::localtime(&now); hour = stamp->tm_hour; minute = stamp->tm_min; diff --git a/src/save_index.cpp b/src/save_index.cpp index 34d9f1847021..2afe3faf13d4 100644 --- a/src/save_index.cpp +++ b/src/save_index.cpp @@ -213,7 +213,7 @@ const config& save_info::summary() const std::string save_info::format_time_local() const { - if(tm* tm_l = std::localtime(&modified())) { + if(std::tm* tm_l = std::localtime(&modified())) { const std::string format = preferences::use_twelve_hour_clock_format() ? _("%a %b %d %I:%M %p %Y") : _("%a %b %d %H:%M %Y"); diff --git a/src/server/ban.cpp b/src/server/ban.cpp index 52a5677715cc..0cee9ed121bd 100644 --- a/src/server/ban.cpp +++ b/src/server/ban.cpp @@ -329,7 +329,7 @@ static lg::log_domain log_server("server"); if (!time) return false; if (duration.substr(0,4) == "TIME") { - struct tm* loc; + std::tm* loc; loc = std::localtime(time); std::size_t number = 0;