diff options
Diffstat (limited to 'src/modules/m_alltime.cpp')
-rw-r--r-- | src/modules/m_alltime.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp index 83dbe53b8..75ed4f355 100644 --- a/src/modules/m_alltime.cpp +++ b/src/modules/m_alltime.cpp @@ -28,16 +28,11 @@ class CommandAlltime : public Command CmdResult Handle(const char* const* parameters, int pcnt, User *user) { char fmtdate[64]; - char fmtdate2[64]; - time_t now = ServerInstance->Time(false); + time_t now = ServerInstance->Time(); strftime(fmtdate, sizeof(fmtdate), "%F %T", gmtime(&now)); - now = ServerInstance->Time(true); - strftime(fmtdate2, sizeof(fmtdate2), "%F %T", gmtime(&now)); - - int delta = ServerInstance->GetTimeDelta(); std::string msg = ":" + std::string(ServerInstance->Config->ServerName) + " NOTICE " + user->nick + " :System time for " + - ServerInstance->Config->ServerName + " is: " + fmtdate + " (delta " + ConvToStr(delta) + " seconds): Time with delta: "+ fmtdate2; + ServerInstance->Config->ServerName + " is: " + fmtdate; if (IS_LOCAL(user)) { |