summaryrefslogtreecommitdiff
path: root/src/modules/m_alltime.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-12 14:47:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-12 14:47:20 +0000
commit0898f10f75bcd8ecde21c73da90955f95dc30e50 (patch)
treef4d0a086d02312a62b192f585ec981ae4bdf5bc8 /src/modules/m_alltime.cpp
parent4e9654e2e9d634a1123890b1910e3aa916e1d33d (diff)
In visual studio, CRT crashes when strftime() is given an invalid format specifier and %F/%T are not supported! -- reported along with stripcolor bug by jackmcbarn, thanks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9467 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_alltime.cpp')
-rw-r--r--src/modules/m_alltime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp
index 1ffd7c5b5..525402541 100644
--- a/src/modules/m_alltime.cpp
+++ b/src/modules/m_alltime.cpp
@@ -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;