]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_alltime.cpp
Chain ValidateServerName onto ValidateHostname so that the servername gets hostname...
[user/henk/code/inspircd.git] / src / modules / m_alltime.cpp
index 1ffd7c5b5328fde941cee3c35ef1d98561a30fc2..5254025417a8d5d8f45c0886c00397c4413ad42c 100644 (file)
@@ -29,8 +29,8 @@ class CommandAlltime : public Command
        {
                char fmtdate[64];
                time_t now = ServerInstance->Time();
-               strftime(fmtdate, sizeof(fmtdate), "%F %T", gmtime(&now));
-               
+               strftime(fmtdate, sizeof(fmtdate), "%Y-%m-%d %H:%M:%S", gmtime(&now));
+
                std::string msg = ":" + std::string(ServerInstance->Config->ServerName) + " NOTICE " + user->nick + " :System time for " +
                        ServerInstance->Config->ServerName + " is: " + fmtdate;