mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Various cleanups and fixes due to feedback
This commit is contained in:
@@ -139,16 +139,13 @@ void stripLineInvisibleChars(std::string &str)
|
||||
|
||||
}
|
||||
|
||||
#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__))
|
||||
struct tm* localtime_r(const time_t* time, struct tm *result)
|
||||
{
|
||||
#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__))
|
||||
localtime_s(result, time);
|
||||
return result;
|
||||
#else
|
||||
return localtime_r(&time, &result); // POSIX
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
std::string secsToTimeString(uint64 timeInSecs, bool shortText, bool hoursOnly)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user