WPIntell

Source evidence

Relative date for comments?

Meks Time Ago · support · 2023-02-20T13:50:00+00:00

complaintsentiment
mediumseverity
0.75relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 27 rows with source links

18.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
joxyzan unresolved
Hi! The plugin works great for posts. But I would like to apply relative date to comments as well… Is there something I’m missing or is it not supported? Hi again! Still hoping for a reply! The only way of getting “time ago”-time stamps for comments that I’ve found is here : add_filter( 'get_comment_date', 'human_get_the_date' ); function human_get_the_date ($date) { return human_time_diff( strtotime( $date ) ) . ' ago'; } But the result says “53 years ago” + time no matter when I posted a comment haha…. :S

Comments

1 shown
joxyzan 2023-03-07T17:12:00+00:00

Hi again! Still hoping for a reply! The only way of getting “time ago”-time stamps for comments that I’ve found is here : add_filter( 'get_comment_date', 'human_get_the_date' ); function human_get_the_date ($date) { return human_time_diff( strtotime( $date ) ) . ' ago'; } But the result says “53 years ago” + time no matter when I posted a comment haha…. :S