Wrong date format in profile plugin

From Joomla! Documentation

Revision as of 02:28, 12 February 2012 by Oc666 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

$data['profile']['dob'] = $date->format('%Y-%m-%d');

and should be changed to:

$data['profile']['dob'] = $date->format('Y-m-d');

See also