aboutsummaryrefslogtreecommitdiff
path: root/src/game/CalendarHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/CalendarHandler.cpp')
-rw-r--r--src/game/CalendarHandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/CalendarHandler.cpp b/src/game/CalendarHandler.cpp
index 5860f4acaec..1dbf86d69a9 100644
--- a/src/game/CalendarHandler.cpp
+++ b/src/game/CalendarHandler.cpp
@@ -24,12 +24,13 @@
#include "Log.h"
#include "Opcodes.h"
#include "Player.h"
+#include "TimeMgr.h"
void WorldSession::HandleCalendarGetCalendar(WorldPacket &recv_data)
{
sLog.outDebug("WORLD: CMSG_CALENDAR_GET_CALENDAR"); // empty
- time_t cur_time = time(NULL);
+ time_t cur_time = sGameTime.GetGameTime();
WorldPacket data(SMSG_CALENDAR_SEND_CALENDAR,4+4*0+4+4*0+4+4);