Forum Discussion

darrenSP's avatar
darrenSP
Mentor
9 years ago
Solved

post_time_friendly not on all messages

Hi,

 

I've noticed that not all messages with the depth=0 have post_time_friendly. Is there a rule to when this is added or am I missing something?

 

Thanks, Darren.

2 Replies

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    9 years ago

    Hi darrenSP

    have you checked what is the configuration for number of days to use relative dates ? I believe the friendly date is returned only if the post is "younger" than that setting.

    Let us know if that worked for you!

  • darrenSP's avatar
    darrenSP
    Mentor
    9 years ago

    Yep that was it!

     

    Decided to leave as is and create a macro to use post_time if last_post_time is null since I will be reusing this code a lot for my custom components.

     

    Thanks for the help.