summaryrefslogtreecommitdiff
path: root/src/cmd_time.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_time.cpp')
-rw-r--r--src/cmd_time.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd_time.cpp b/src/cmd_time.cpp
index c9d47b813..e5ed1c183 100644
--- a/src/cmd_time.cpp
+++ b/src/cmd_time.cpp
@@ -21,14 +21,12 @@
#include "helperfuncs.h"
#include "commands/cmd_time.h"
-
-extern time_t TIME;
-
void cmd_time::Handle (const char** parameters, int pcnt, userrec *user)
{
struct tm* timeinfo;
+ time_t local = ServerInstance->Time();
- timeinfo = localtime(&TIME);
+ timeinfo = localtime(&local);
char tms[26];
snprintf(tms,26,"%s",asctime(timeinfo));