Dawn Theme - Change the comment posted date for red light therapy home website

Hello, at the moment, next to the comments, it shows the data when I approved the comment, not when it was posted. For example, here’s a page at red light therapy home with all comments showing 20th of sep (because that’s when I approved them). I want to show the date they were posted. https://redlighttherapyhome.com/blogs/news/wavelengths (you will need to scroll all the way down this page)

I created some code to show my answers under the comment because there’s not a single app that I like lol.

Hi @jonathanknight

I have checked the code in main-article.liquid file and the date is comment created at data

and you can see have some comment is not showing 20th of sep

Cheers for looking into this Dan. These were definitely old comments that I approved on the 20th of Sep. But I checked the code and you’re right, it is “created_at”. I tried changing it to “updated_at” but no luck. Maybe Shopify doesn’t save the original date once a comment is approved?

Also, lots of comments have the same date, which sorta proves that that’s when I approved them in bulk.

Could you check the date of comments in your blog post?

The date of comment is correct in the blog->manage comments but incorrect on the actual blog page that’s public.

Make sure you check in correct blog post, image you send me is a comment belong another blog post:

https://redlighttherapyhome.com/blogs/news/serums

Yes both are from Serums

But the date you talking about belong another blog post

https://redlighttherapyhome.com/blogs/news/wavelengths

Here is an example from the wavelengths page. Point remains - the date of actual posting is not “comment.created_at” in main-article.liquid

I want to show the date of actual posting, not the date of me approving it, if possible. Thank you for trying to help me!

You are welcome. It weirds so may you must check your code again to correct it

Sorry? So there’s no way to show the correct date?

I’m already using “comment.created_at”, what should I do?

Maybe you edit code in incorrect file template, please deep check that you edit code in correct file that you are using to display comments.

I’ve been trying, but it’s okay, I guess I can live with the wrong dates. Thanks again for your help. I am going to buy you a couple coffees. Do you have Paypal?

Thanks you very much. You can buy coffee for me via this paypalme link: coffee

Done, hopefully it buys you two Starbucks cups. lol. If you find a way to sort my problem, please let me know.. but don’t stress over it.

Thanks. Let me give it a try