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

Add a function for building an ISO 8601 timestamp.

This commit is contained in:
Sadie Powell
2026-06-10 09:01:55 +01:00
parent 4878b1787e
commit b9d0762f2b
3 changed files with 25 additions and 5 deletions
+1 -5
View File
@@ -299,11 +299,7 @@ public:
{
Anope::map<Anope::string> tags;
if (timestamp)
{
char timebuf[32];
strftime(timebuf, sizeof(timebuf), "%Y-%m-%dT%H:%M:%S.000Z", gmtime(&message->when));
tags["time"] = timebuf;
}
tags["time"] = Anope::FormatISO8601(message->when, 0);
if (u->ShouldPrivmsg())
IRCD->SendContextPrivmsg(c->ci->WhoSends(), u, c, message->message, tags);