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

Human-readable time periods in SCORM reports

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.9.9
    • 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4
    • SCORM, Usability
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      Currently SCORM reports exhibit time periods notation format, which is understandable but yet not so user-friendly: P1DT1H2M32.1S for example. Using some complex regular expressions, we can replace this notation by usual one: 1 day 1 hour 2 minutes 32.1 sec. The attached patch does this by adding a formatter function and calling it in every place where report prints out date/time periods. The patch is applied with -p0.

        1. scorm_format_unittest.patch
          2 kB
        2. scorm_time.patch
          4 kB
        3. scorm_time2.patch
          5 kB
        4. Screenshot.png
          Screenshot.png
          12 kB

            danmarsden Dan Marsden
            argentum Vlas Voloshin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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