WordPress comments – wrong date displayed

I was going through my post – List of Bollywood movies copied from Hollywood movies – and I saw that wrong date displayed in the comments. It was quite weird as I’ve never seen such problem before in any of my blog.

WordPress Comments Wrong Dates

WordPress Comments Wrong Dates

I checked the post in admin and found that comments are showing correct date.

Comment dates shown correctly in edit post

Comment dates shown correctly in edit post

The strange thing was that all of these comments were showing just one date which happened to be the post date.  And this problem happens only with some posts and not with all posts.

The solution

It didn’t take me long time to figure out that comment template shows the post date instead of comment date.

I replaced the_time with comment_time and it solved the problem.

Not to mention that I’m using Sensational premium WordPress theme and expected the theme to work properly.

Comments

Leave a Reply