geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit 18d0d655c407fb4fadf7dddd995190dbb71509f2
parent f7a863b5f13d9a4cabb9a51b79125ef63c7e7759
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:
main.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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);