mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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
This commit is contained in:
parent
4e9654e2e9
commit
0898f10f75
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user