Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-85760

Assignment - Remaining time should show smaller units if they are greater than 0

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.0
    • Assignment
    • 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)

      {     return $oyears .' '. $odays .' '. $ohours .' '. $omins .' '. $osecs; }

       

            Nguyen Nathan Nguyen
            Nguyen Nathan Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.