Revert "Core/Misc: Replace time(NULL) with GameTime::GetGameTime()"
This reverts commit 5fe3a1f7f9.
This commit is contained in:
1 parent
4dc27b53eb
commit
c074c3a9c6
69 files changed
+258
-357
No files matched your search
@@ -18,7 +18,6 @@
|
||||
#include "GuildMgr.h"
|
||||
#include "AchievementMgr.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "GameTime.h"
|
||||
#include "Guild.h"
|
||||
#include "Log.h"
|
||||
#include "ObjectMgr.h"
|
||||
@@ -588,7 +587,7 @@ void GuildMgr::ResetTimes(bool week)
|
||||
|
||||
// Delete too old old guild member
|
||||
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_OLD_OLD_GUILD_MEMBER);
|
||||
stmt->setUInt32(0, uint32(GameTime::GetGameTime() - time_t(30 * DAY)));
|
||||
stmt->setUInt32(0, uint32(time(nullptr) - time_t(30 * DAY)));
|
||||
CharacterDatabase.Execute(stmt);
|
||||
|
||||
// Reset week reputation for old guild member
|
||||
|
||||
Reference in new issue
Block a user