The time format on the messages is not following the setup on the WordPress settings. To correct this,

please try adding the below Function in your theme files by following these steps:


1. Go to Appearance > Theme Editor.

2. Under “Select theme to edit”, choose (BuddyBoss Child/whatever theme is active), then click “Select”.

3. Below Theme Files, select Theme Functions (functions.php).

4. Append the code just before the closing PHP tag “?>”:


function bb_change_time_format_to_wp_time( $site_sent_date ) {

    if ( function_exists( 'bp_get_the_thread_message_date_sent' ) ) {

        $sent_date           = bp_get_the_thread_message_date_sent();

        $sent_date_formatted = wp_date( 'Y-m-d h:i:s', $sent_date );

        $site_sent_date      = get_date_from_gmt( $sent_date_formatted );

        $time_format         = get_option( 'time_format' );

        $time_format         = ! empty( $time_format ) ? $time_format : 'g:i a';

        $site_sent_date      = wp_date( $time_format, strtotime( $site_sent_date ) );

    }

    return $site_sent_date;

}

add_filter( 'bb_get_the_thread_message_sent_time', 'bb_change_time_format_to_wp_time', 99, 1 );


5. Click “Update File” to save the changes.


Note: Any modifications are considered as custom work already. Know more about our Support Policy here: https://www.buddyboss.com/support-policy/