ii

git clone https://orangeshoelaces.net/git/ii.git

c6a91cf07a3c853f061f0b4136416090353dfb7b

Author: nion@h4447.serverkompetenz.net on 07/09/2006

Committer: nion@h4447.serverkompetenz.net on 07/09/2006

add date to timestamp

Stats

ii.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/ii.c b/ii.c
index 8256ecc..2fe4365 100644
--- a/ii.c
+++ b/ii.c
@@ -217,12 +217,12 @@ static void print_out(char *channel, char *buf)
 {
 	static char outfile[256];
 	FILE *out;
-	static char buft[8];
+	static char buft[18];
 	time_t t = time(0);
 
 	create_filepath(outfile, sizeof(outfile), channel, "out");
 	out = fopen(outfile, "a");
-	strftime(buft, sizeof(buft), "%R", localtime(&t));
+	strftime(buft, sizeof(buft), "%F %R", localtime(&t));
 	fprintf(out, "%s %s\n", buft, buf);
 	fclose(out);
 }