All Logs - graph problem

All Logs - graph problem

by Jose Fernandes -
Number of replies: 5

Hi!

In a student's profile, when we clic "All Logs", a graph is displayed with the number of "accesses".

This graph presents the data in an unfortunate way, always placing the number of real accesses of a student, in the previous day.

It doesn't seem to make sense, but it happens in several versions of Moodle and has never been changed.

You can see here (in attachment), a simple example. We have Moodle 3.9.1 with Academi Theme.

The user in question accessed on 5th November and the chart shows  4th. If I click on "show data from the chart", the error is the same...

What can we do to correct this issue?

Thanks!

Jose

Attachment Moodle391Academi_EN.jpg
Average of ratings: -
In reply to Jose Fernandes

Re: All Logs - graph problem

by Hugo Ribeiro -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I get the same behaviour. It seems https://tracker.moodle.org/browse/MDL-58991 again. Maybe some regression?
In reply to Jose Fernandes

Re: All Logs - graph problem

by Jose Fernandes -
I think the solution might be here:

moodle \ report \ log \ locallib.php

That's where the report_log_print_graph function is, among others.

Someone to help on code change?
In reply to Jose Fernandes

Re: All Logs - graph problem

by Hugo Ribeiro -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I've just looked again into this issue and after DST (march 28th) the info is now correct.