diff --git a/src/iperf_error.c b/src/iperf_error.c index 0fedf3110..ce925a81f 100644 --- a/src/iperf_error.c +++ b/src/iperf_error.c @@ -99,7 +99,7 @@ iperf_errexit(struct iperf_test *test, const char *format, ...) if (test != NULL && test->timestamps) { time(&now); ltm = localtime(&now); - strftime(iperf_timestrerr, sizeof(iperf_timestrerr), "%c ", ltm); + strftime(iperf_timestrerr, sizeof(iperf_timestrerr), iperf_get_test_timestamp_format(test), ltm); ct = iperf_timestrerr; }