Introduction
Introduction Statistics Contact Development Disclaimer Help
Log UTC time instead of localized time - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
README
LICENSE
---
commit 18d0d655c407fb4fadf7dddd995190dbb71509f2
parent f7a863b5f13d9a4cabb9a51b79125ef63c7e7759
Author: Quentin Rameau <[email protected]>
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 <[email protected]>
Diffstat:
M 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);
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.