commit c6a91cf07a3c853f061f0b4136416090353dfb7b
parent 4c4403721f81ff932b8c5e15eb9ec34cbf23e4b7
Author: nion@h4447.serverkompetenz.net <unknown>
Date: Sun, 9 Jul 2006 20:41:28 +0200
add date to timestamp
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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);
}