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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user