Wrong date format in profile plugin: Difference between revisions
From Joomla! Documentation
Created page with "If you see % (ampersand) in your date field, which is part of the profile plugin, you can fix it easily with editing the file ''plugins/user/profile/profile.php''. The line curre..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
If you see % (ampersand) in your date field, which is part of the profile plugin, you can fix it easily with editing the file ''plugins/user/profile/profile.php''. The line currently (2.5.1) is: | If you see % (ampersand) in your date field, which is part of the profile plugin (date of birth field), you can fix it easily with editing the file ''plugins/user/profile/profile.php''. The line currently (2.5.1) is: | ||
<pre> | <pre> | ||
$data['profile']['dob'] = $date->format('%Y-%m-%d'); | $data['profile']['dob'] = $date->format('%Y-%m-%d'); | ||
Revision as of 08:29, 12 February 2012
If you see % (ampersand) in your date field, which is part of the profile plugin (date of birth field), you can fix it easily with editing the file plugins/user/profile/profile.php. The line currently (2.5.1) is:
$data['profile']['dob'] = $date->format('%Y-%m-%d');
and should be changed to:
$data['profile']['dob'] = $date->format('Y-m-d');
See also
- issue in the tracker (bug tracker #27918)