Fix logging incorrect timestamp with server-time

Fixes #972
Fix sorting problem when using tabs

Fixes #949