mirror of
https://github.com/anope/anope.git
synced 2026-06-26 01:06:39 +02:00
Use a more human readable datetime format.
This commit is contained in:
+1
-1
@@ -351,7 +351,7 @@ Anope::string Anope::strftime(time_t t, const NickCore *nc, bool short_output)
|
||||
{
|
||||
tm tm = *localtime(&t);
|
||||
char buf[BUFSIZE];
|
||||
strftime(buf, sizeof(buf), Language::Translate(nc, _("%b %d %H:%M:%S %Y %Z")), &tm);
|
||||
strftime(buf, sizeof(buf), Language::Translate(nc, _("%b %d %Y %H:%M:%S %Z")), &tm);
|
||||
if (short_output)
|
||||
return buf;
|
||||
if (t < Anope::CurTime)
|
||||
|
||||
Reference in New Issue
Block a user