Fix duration conversion for log entries