Use gmtime() instead of localtime()

%Z is a GNU extension, so we avoid it here by these means.

Thanks Hiltjo!
This commit is contained in:
FRIGN 2014-08-09 22:33:11 +02:00
parent 34b584e2cb
commit 5c7155255c

View file

@ -478,7 +478,7 @@ tstamp(void) {
static char res[30];
time_t t = time(NULL);
strftime(res, sizeof res, "%a, %d %b %Y %H:%M:%S %Z", localtime(&t));
strftime(res, sizeof res, "%a, %d %b %Y %H:%M:%S GMT", gmtime(&t));
return res;
}