Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.9
-
Fix Version/s: 1.9
-
Component/s: Administration
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
oserving weird time calculation problems in stats library - rewrite the time code using server timezone - do not rely on user timezone handling to prevent problems with skipped days, infinite loops, etc.
The worst problem we face here are infinite looks and skipped days/weeks/months.
Critical days are DST transitions.
In general is is bad to mix native PHP and Moodle date handling functions, the code in patch was rewritten to prevent infinite looks and skipping.
TODO: