1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 09:36:38 +02:00

Bug #1279 - Fixed strftime

This commit is contained in:
Adam
2011-07-04 22:39:13 -04:00
parent 714831b249
commit c549aa4e76
+2 -1
View File
@@ -240,7 +240,8 @@ Anope::string duration(const time_t &t, NickCore *nc)
Anope::string do_strftime(const time_t &t, NickCore *nc, bool short_output)
{
tm tm = *localtime(&t);
const char *buf = translate(nc, _("%b %d %H:%M:%S %Y %Z"));
char buf[BUFSIZE];
strftime(buf, sizeof(buf), translate(nc, _("%b %d %H:%M:%S %Y %Z")), &tm);
if (short_output)
return buf;
if (t < Anope::CurTime)