1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 19:43:13 +02:00

Use UTC in anopesmtp to fix a C++98 compat warning.

This commit is contained in:
Sadie Powell
2021-04-08 13:25:52 +01:00
parent f83558f10b
commit 683f42eeef
+2 -2
View File
@@ -112,9 +112,9 @@ static std::string GetTimeStamp()
{
char tbuf[256];
time_t t = time(NULL);
struct tm *tm = localtime(&t);
struct tm *tm = gmtime(&t);
strftime(tbuf, sizeof(tbuf) - 1, "%a, %d %b %Y %H:%M:%S %z", tm);
strftime(tbuf, sizeof(tbuf) - 1, "%a, %d %b %Y %H:%M:%S +0000", tm);
return tbuf;
}