quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit 5c7155255cf5c1d248919acfac9834aba743848b
parent 34b584e2cb63e3372f42d0f9825d0274510d95d3
Author: FRIGN <dev@frign.de>
Date:   Sat,  9 Aug 2014 22:33:11 +0200

Use gmtime() instead of localtime()

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

Thanks Hiltjo!

Diffstat:
Mquark.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/quark.c b/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; }