$ git clone https://tcclient.ion.nu/tc_client.git
commit 825a6a86b2d507ad008b0fad4a9df16c40bcd3a9
Author: Alicia <...>
Date: Fri Mar 11 12:22:04 2016 +0100
tc_client-gtk: format timestamps in logs.
diff --git a/ChangeLog b/ChangeLog
index 0b8c6dc..bc15295 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,7 @@ tc_client-gtk: set a default position of the cam and nickname list pane handles.
tc_client-gtk: use --hexcolors to show the full range of colors.
tc_client-gtk: keep cam pixel buffers on the heap instead of the stack, fixes glitchyness when resizing.
tc_client-gtk: fixed a memory leak.
+tc_client-gtk: format timestamps in logs.
modbot: use youtube-dl's 'ytsearch:' instead of '--default-search auto', fixes issues with search terms that include slashes.
modbot: if requesting by URL, skip to the ID.
configure: check for multiple versions of ncurses.
diff --git a/utilities/gtk/logging.c b/utilities/gtk/logging.c
index 8502bdb..be16132 100644
--- a/utilities/gtk/logging.c
+++ b/utilities/gtk/logging.c
@@ -80,7 +80,8 @@ void logger_write(const char* line, const char* channel, const char* nick)
--logfilecount;
return;
}
- fprintf(logfiles[i].f, "Opening logfile on %ti (TODO: format)\n", time(0));
+ time_t timebuf=time(0);
+ fprintf(logfiles[i].f, "Opening logfile on %s\n", ctime(&timebuf));
}
fprintf(logfiles[i].f, "%s\n", line);
fflush(logfiles[i].f);