X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/fca5cb18a75fef98293e4afdc1d5fcad45230818..55b583f6c31af475f329da97cd160a8ab2e8df8c:/src/src/debug.c diff --git a/src/src/debug.c b/src/src/debug.c index f6c8b2f62..7a2e65632 100644 --- a/src/src/debug.c +++ b/src/src/debug.c @@ -188,7 +188,7 @@ if (debug_ptr == debug_buffer) gettimeofday(&now, NULL); tmp = now.tv_sec; - t = timestamps_utc ? gmtime(&now) : localtime(&now); + t = timestamps_utc ? gmtime(&tmp) : localtime(&tmp); debug_ptr += sprintf(CS debug_ptr, LOGGING(millisec) ? "%02d:%02d:%02d.%03d " : "%02d:%02d:%02d ", t->tm_hour, t->tm_min, t->tm_sec, now.tv_usec/1000);