Log UTC time instead of localized time - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 18d0d655c407fb4fadf7dddd995190dbb71509f2 DIR parent f7a863b5f13d9a4cabb9a51b79125ef63c7e7759 HTML Author: Quentin Rameau <quinq@fifth.space> Date: Thu, 8 Mar 2018 16:03:38 +0100 Log UTC time instead of localized time This would create minor inconsistency in log when chrooting, and as the timezone is specified in the format it's fine. Signed-off-by: Christoph Lohmann <20h@r-36.net> Diffstat: M main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/main.c b/main.c @@ -91,7 +91,7 @@ logentry(char *host, char *port, char *qry, char *status) if (glfd >= 0) { tim = time(0); - ptr = localtime(&tim); + ptr = gmtime(&tim); ahost = revlookup ? reverselookup(host) : host; strftime(timstr, sizeof(timstr), "%F %T %z", ptr);