Permalink
Browse files

Add year to log timestamp.

Closes GH-32
  • Loading branch information...
1 parent 8057ebf commit f6eef6eebf060605852aa85a98fe1a56aa87cd86 @queueRAM queueRAM committed May 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 btpd/util.c
View
@@ -95,7 +95,7 @@ log_common(uint32_t type, const char *fmt, va_list ap)
if (type & btpd_logmask) {
char tbuf[20];
time_t tp = time(NULL);
- strftime(tbuf, 20, "%b %e %T", localtime(&tp));
+ strftime(tbuf, 20, "%Y %b %e %T", localtime(&tp));
printf("%s %s: ", tbuf, logtype_str(type));
vprintf(fmt, ap);
}

0 comments on commit f6eef6e

Please sign in to comment.