XF 2.2 hot to show $user.last_activity in message_macros (postbit) more precise

otix_

Member
In the template: "message_macros" I added this, to show the last user activity:

Code:
<dl class="pairs pairs--justified">
  <dt>Zuletzt online:</dt>
  <dd>{{ date($user.last_activity) }}</dd>
</dl>

That's ok, but I want it a bit more precise, like: "today", "yesterday", "26 minutes ago",

how do I do that?
 
Top