-
Improvement
-
Resolution: Fixed
-
Minor
-
4.5
-
MOODLE_405_STABLE
-
MOODLE_405_STABLE
-
- Covered by automated tests
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):
- The date filter
- 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