Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.4.11, 2.5.7, 2.6.4, 2.7.1, 2.8
-
Component/s: Administration
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
-
Fixed Branches:MOODLE_26_STABLE, MOODLE_27_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-46676_master -
Pull Master Diff URL:
Description
This is dependent on the server/PHP timezone being set to something other than UTC - in our case it was Australia/Perth
1. Add a custom profile field for date only;
2. Edit a user profile, select a date for the custom field and save;
3. View the profile - the date will be a day earlier
The issue lies in /user/profile/field/datetime/field.class.php edit_save_data_preprocess() method is using PHP date function rather than moodle's userdate function.