-
Bug
-
Resolution: Fixed
-
Minor
-
2.6.1
-
32bit PHP
-
MOODLE_26_STABLE
-
MOODLE_26_STABLE
-
MDL-43717_master -
-
I encountered the following Behat failure because a date used in one of the tests is set to 2050.
04. "Available from 31 December 2050." text was not found in the page
|
In step `Then I should see "Available from 31 December 2050."'. # behat_general::assert_page_contains_text()
|
From scenario `Show activity greyed-out to students when available from date is in future'. # C:\xampp\htdocs\master_integration\completion\tests\behat\restrict_activity_by_date.feature:31
|
Of feature `Restrict activity availability through date conditions'. # C:\xampp\htdocs\master_integration\completion\tests\behat\restrict_activity_by_date.feature
|
This fails with 32bit PHP because of the limit of unsigned integers at 2147483648, which means the maximum date/time is Tue, 19 Jan 2038 03:14:08 GMT.
The fix to the this problem is to change the date to one earlier than the limit, or we could just ignore the problem under with the knowledge we have about 32bit limitations and sleep well at night.
- is a regression caused by
-
MDL-42282 Automate MDLQA-509 - A teacher can prevent students from accessing an activity between specified dates
-
- Closed
-
- Testing discovered
-
MDL-43395 get_records*_sql silently converts invalid limit param to integer
-
- Closed
-
- will be (partly) resolved by
-
MDL-9046 Database date field does not allow entering date before 1970 or after 2038
-
- Closed
-