]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_alltime.cpp
m_spanningtree Replace WriteLine() call with Unicast() in DoCollision()
[user/henk/code/inspircd.git] / src / modules / m_alltime.cpp
index 58f7c4fb5a484f4076a661f10c8f8371f6d38091..075064c62465be4b131cdb9c6a1f647165667f52 100644 (file)
@@ -31,9 +31,7 @@ class CommandAlltime : public Command
 
        CmdResult Handle(const std::vector<std::string> &parameters, User *user)
        {
-               char fmtdate[64];
-               time_t now = ServerInstance->Time();
-               strftime(fmtdate, sizeof(fmtdate), "%Y-%m-%d %H:%M:%S", gmtime(&now));
+               const std::string fmtdate = InspIRCd::TimeString(ServerInstance->Time(), "%Y-%m-%d %H:%M:%S", true);
 
                std::string msg = ":" + ServerInstance->Config->ServerName + " NOTICE " + user->nick + " :System time is " + fmtdate + " (" + ConvToStr(ServerInstance->Time()) + ") on " + ServerInstance->Config->ServerName;