diff --git a/libtransmission/log.c b/libtransmission/log.c index 2fc9fea01..096a55952 100644 --- a/libtransmission/log.c +++ b/libtransmission/log.c @@ -159,9 +159,9 @@ tr_logGetTimeStr (char * buf, int buflen) seconds = tv.tv_sec; tr_localtime_r (&seconds, &now_tm); - strftime (tmp, sizeof (tmp), "%H:%M:%S", &now_tm); + strftime (tmp, sizeof (tmp), "%Y-%m-%d %H:%M:%S.%%03d %Z", &now_tm); milliseconds = tv.tv_usec / 1000; - tr_snprintf (buf, buflen, "%s.%03d", tmp, milliseconds); + tr_snprintf (buf, buflen, tmp, milliseconds); return buf; }