Legacy Log Issue

Legacy Log Issue

by Premi Sivanesan -
Number of replies: 5

Hi

Does anyone know how to format the display date on the logs. At the moment, its not displaying the year in the log as per screen:


Average of ratings: -
In reply to Premi Sivanesan

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Deleted user

Re: Legacy Log Issue

by Jennifer Edmondson -
At a glance, it appears that this might be the related tracker issue, so you may wish to vote on it & follow its progress: https://tracker.moodle.org/browse/MDL-49473
Average of ratings: Useful (2)
In reply to Jennifer Edmondson

Re: Legacy Log Issue

by James McLean -

Jen's right - that tracker item covers the issue. But, the fix is easier than in the tracker item.

The report generator passes in a language string from lang/en/langconfig.php specifically the string 'strftimerecent' - which is missing the year in the format. It's set to '%d %b, %H:%M' by default, but should be '%d %b %Y, %H:%M'.

I've made this change on a local Moodle, and this resolves the issue.

I'll comment on the tracker issue that the fix is simple.

Average of ratings: Useful (1)
In reply to Deleted user

Re: Legacy Log Issue

by Premi Sivanesan -

Not really sad

In reply to Premi Sivanesan

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.