diff options
author | Sadie Powell <sadie@witchery.services> | 2021-04-08 13:25:52 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-04-08 13:47:13 +0100 |
commit | 683f42eeef9f82edcbf96349a21ed4153a80837c (patch) | |
tree | 527b001a399aca050fa93fba00ab8bbeeb4c703f | |
parent | f83558f10b3ac6021b05fa187a9302310794f008 (diff) |
Use UTC in anopesmtp to fix a C++98 compat warning.
-rw-r--r-- | src/tools/anopesmtp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/anopesmtp.cpp b/src/tools/anopesmtp.cpp index 396524049..d86f9c43f 100644 --- a/src/tools/anopesmtp.cpp +++ b/src/tools/anopesmtp.cpp @@ -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; } |