-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
The time remaining for assignments in Moodle should be displayed down to the second.
Currently, the system only shows the day and hours remaining, which may confuse user on how the penalty will be applied to their submission
For example:
Providing, we have the following penalty rules:
1. Late less than or equal 1 day: 10%
2. Late less than or equal 2 day: 20%
...
If a user submits an assignment which is late for 1 day 0 hour 0 minute 1 second
The current time remaining will show as : Time remaining: Assignment was submitted 1 day late
Which user may think they will only be penalized for 10%, but it should be 20% instead.
Proposed format: Time remaining: Assignment was submitted 1 day and 1 second late
Suggested solution:
- Add new bool parameter in function format_time($totalsecs, $str = null) as:
function format_time($totalsecs, $str = null, $displayfull = false) {
—
if ($displayfull)
—