-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.11, 2.5.7, 2.6.4, 2.7.1, 2.8
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL-46676_master -
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.