mycred_log_date
Description
This filter allows you to adjust how dates in the log or in exports are presented.
Available since version 1.2
Parameters
Param | Type | Required | Description |
---|---|---|---|
$date |
string | Yes | The formatted date to show. |
$time |
int | No | The original unix timestamp being formatted. |
$entry |
obj | No | The log entry object. |
Used By
Package | Prio. | Description |
---|---|---|
mycred/log | 10 | Used by the log query class. |
mycred/log | 20 | Used by the export module. |
Examples
Example 1: Instead of showing a date for each log entry, we show time ago.