Comment's date is wrong

Hello,

This URL https://tarekrabaa.com/issues/البرقية-المنقولة-303/ shows 2 comments posted 2 months ago.
While checking the date tonight, I am seeing September 14, 2018, yet the comment real date was 2 months ago.

Would plz help!

thx

Hello There,

Thanks for writing in! I have reviewed your previous threads and there were some threads which indicates that the comment section were modified in your sites. Could you please give us access to your site so that we can take a closer look? We could no longer find any given WP access in the other threads.

To do this, you can create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

Thank you.

1 Like

Hi,

I sent the info in a secure note.

thx

Hello There,

The date and time is correct. Only the display is incorrect.

I could not locate the cause of the issue. One thing I am sure of, it is being hard coded somewhere in your child theme.
If you can provide ftp, then we may be able to find it.

Thank you.

1 Like

Thx.
I sent to you in secure note the FTP credentials.

Hello There,

I have logged in to your ftp and resolved the issue. I removed this code:

add_filter( 'get_comment_date', 'wpsites_change_comment_date_format' );	
function wpsites_change_comment_date_format( $d ) {
    $d = date("d - m - Y |");	
    return $d;
}

This code is displaying the current date instead of the actual comment date.

Kindly check your site now.

1 Like

It is OK now.

Many thx for your support.

Glad we could help, Cheers!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.