From a5e73e41c0e813e674bb0a644e0052052435494e Mon Sep 17 00:00:00 2001 From: Treeston Date: Sun, 4 Aug 2019 12:22:57 +0200 Subject: Core/Pooling: Quest pooling rewrite: (PR#23627) - Split quest pooling from PoolMgr (into QuestPoolMgr) - Proper saving/restoring on server restart - No more hacking into sObjectMgr to insert/remove available quests --- src/common/Utilities/Util.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/common/Utilities/Util.cpp') diff --git a/src/common/Utilities/Util.cpp b/src/common/Utilities/Util.cpp index fa8fb5edbe0..0a778f33654 100644 --- a/src/common/Utilities/Util.cpp +++ b/src/common/Utilities/Util.cpp @@ -209,6 +209,15 @@ std::string TimeToTimestampStr(time_t t) return std::string(buf); } +std::string TimeToHumanReadable(time_t t) +{ + tm time; + localtime_r(&t, &time); + char buf[30]; + strftime(buf, 30, "%c", &time); + return std::string(buf); +} + /// Check if the string is a valid ip address representation bool IsIPAddress(char const* ipaddress) { -- cgit v1.2.3