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:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user