Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.5, 2.2.2, 2.3
-
Component/s: Forms Library
-
Testing Instructions:
-
Affected Branches:MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
Fixed Branches:MOODLE_21_STABLE, MOODLE_22_STABLE
-
Pull from Repository:
-
Pull Master Branch:wip-mdl-32234
-
Pull Master Diff URL:
Description
Note: turn debugging on.
Steps to reproduce:
- Log in as admin
- Edit profile and change timezone to UTC (Can be any other then server time)
- Browse users (Settings -> site administration -> Users -> accounts -> Browse list of users)
- Add some filter text and press "Add filter"
- notice will appear.
FYI:
This is happening because usergetdate returns mon in two digits and select.php use strict matching.
Solution:
In dateselector.php typecase $currentdate['mon'] on line 153.
(int) $currentdate['mon'];
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-27562 Timezone option not considered in dateselector and datetimeselector form element
-
- Closed
-