0

I'm inside this loop:

{exp:channel:entries channel="people" disable="categories|member_data|pagination" status="open|closed" show_expired="yes" show_future_entries="yes" sort="asc" orderby="people_last_name" limit="999"}

Just about everything I'm displaying is working as expected. At one point, I have:

{edit_date format="%m/%d/%y"} - {edit_date:relative}

{edit_date format="%m/%d/%y"} works fine. {edit_date:relative} gets passed through as literal text. So I get results like:

12/02/12 - {edit_date:relative}

Anyone know what I’m doing wrong, and how I can fix it?

4
  • Does {entry_date:relative} work in the same place in the template?
    – Sandwich
    Commented Nov 20, 2014 at 18:04
  • It does not. I should have thought to check that. How do I turn it on? Commented Nov 20, 2014 at 18:05
  • 1
    Like @albuvee answered, what version of EE are you running? (Also, I can confirm that {edit_date:relative} actually is implemented - just tried it).
    – Sandwich
    Commented Nov 20, 2014 at 18:07
  • That was the problem: we’re behind 2.8. Thanks! Commented Nov 20, 2014 at 18:10

1 Answer 1

3

Relative Dates have been introduced to (native) Expression Engine in Version 2.8.

Have you checked if your Site is running on EE 2.8 or newer?

1
  • Ah! I didn’t realize it was a new feature. We’re behind 2.8, so that’s the problem. Thanks! (An EE upgrade is planned for soon.) Commented Nov 20, 2014 at 18:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.