MDL-70099 enrol: increase accuracy of current enrolments by date.
commitebfe1d5945621f1b738e6cf1a874151a47ca2b66
authorPaul Holden <paulh@moodle.com>
Tue, 3 Nov 2020 08:16:07 +0000 (3 08:16 +0000)
committerPaul Holden <paulh@moodle.com>
Mon, 5 Apr 2021 18:32:15 +0000 (5 19:32 +0100)
tree90734828511dcafb4973d84096d23b43e0be7cf2
parentef7fcf42612ffcc289f804cf0b83a76631f83f70
MDL-70099 enrol: increase accuracy of current enrolments by date.

By rounding the current time it was possible that the most recently
created user enrolments (e.g. self enrolments) were being excluded.

This would manifest itself in a user being enrolled on a course,
but it not appearing under "My courses" navigation or on their own
Dashboard until the rounded time had caught up with the current
time.
enrol/self/tests/behat/self_enrolment.feature
enrol/tests/enrollib_test.php
lib/enrollib.php
lib/navigationlib.php