Merge commit '183a0c59e0b4ad63158b04dd62d76d20d8bfc24e' into 4.3.4

This commit is contained in:
Carbenium
2015-07-21 17:54:19 +02:00
3 changed files with 3 additions and 14 deletions

View File

@@ -280,7 +280,8 @@ public:
// Format creation date
char createdDateStr[20];
time_t createdDate = guild->GetCreatedDate();
strftime(createdDateStr, 20, "%Y-%m-%d %H:%M:%S", localtime(&createdDate));
tm localTm;
strftime(createdDateStr, 20, "%Y-%m-%d %H:%M:%S", localtime_r(&createdDate, &localTm));
handler->PSendSysMessage(LANG_GUILD_INFO_CREATION_DATE, createdDateStr); // Creation Date
handler->PSendSysMessage(LANG_GUILD_INFO_MEMBER_COUNT, guild->GetMemberCount()); // Number of Members