Skip to content
Snippets Groups Projects
Commit 5d27ef24 authored by Astor Bizard's avatar Astor Bizard :dog2:
Browse files

Adjusted daily activity graph time span.

parent efda107e
No related branches found
No related tags found
No related merge requests found
......@@ -339,11 +339,14 @@ class vpl_grapher {
}
$start = vpl_timestamp_to_midnight($start);
// End of time span is either module due date, either now.
// End of time span is either module due date, either last submission date.
if ($this->vpl->get_instance()->duedate > 0) {
$end = $this->vpl->get_instance()->duedate;
} else {
$end = time();
$end = 0;
foreach ($this->submissions as $subinstance) {
$end = max($end, $subinstance->datesubmitted);
}
}
$end = vpl_timestamp_to_midnight($end);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment