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:
parent
34b584e2cb
commit
5c7155255c
1 changed files with 1 additions and 1 deletions
2
quark.c
2
quark.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue