Different date time in results of search

All the date functions reference the global $post variable, but from your code the $post variable is not being used, so that’s why the date is wrong.

Try this (untested):

foreach ( $total_results as $tr ) {
    echo get_the_time( 'j F Y, G:i', $tr );
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)