[hackers] [quark] Use gmtime() instead of localtime() || FRIGN

From: <git_AT_suckless.org>
Date: Sat, 09 Aug 2014 22:32:05 +0200

commit 5c7155255cf5c1d248919acfac9834aba743848b
Author: FRIGN <dev_AT_frign.de>
Date: Sat Aug 9 22:33:11 2014 +0200

    Use gmtime() instead of localtime()
    
    %Z is a GNU extension, so we avoid it here by these means.
    
    Thanks Hiltjo!

diff --git a/quark.c b/quark.c
index db036b5..b6e7578 100644
--- a/quark.c
+++ b/quark.c
_AT_@ -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;
 }
 
Received on Sat Aug 09 2014 - 22:32:05 CEST

This archive was generated by hypermail 2.3.0 : Sat Aug 09 2014 - 22:36:10 CEST