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

Migrate time-sensitive reportbuilder code/tests to new Clock API

XMLWordPrintable

      Use the new PSR-20 Clock implementation from MDL-80838 for all time-sensitive code in Reportbuilder (specifically code that depends on/has tests related to calculating relative time periods):

      1. The date filter
      2. Report scheduling calculation

      We've "fixed" this previously in MDL-77091 by passing around a $timenow parameter to various methods, used purely for testing - deprecate all that, in favour of the new Clock API

            pholden Paul Holden
            pholden Paul Holden
            Carlos Castillo Carlos Castillo
            David Carrillo David Carrillo
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 50 minutes
                4h 50m

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