-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
2.4.1, 3.4.4, 3.5.1
-
MOODLE_24_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
wip-
MDL-37327-master
Add current_time() to moodlelib - which either just returns time() or if a global is set returns the time relative to a manually set time.
Add a function to the data generator to allow the current time to be set.
Replace all calls to time() with current_time().
Concerns
- current_time() is not very descriptive
- changing all calls to time() will create a large patch (1232 instances outside of tests)
- blocks
-
MDL-60644 core_search: Remove hacky PHPunit time workarounds after MDL-37327 fix
-
- Closed
-
- Testing discovered
-
MDL-22183 Stats keeps running later and later - use scheduled task time only
-
- Closed
-
- will be (partly) resolved by
-
MDL-80838 Add support for PSR-20 (Clock) to allow better time management
-
- Closed
-