diff --git a/plugins/user/profile/profile.php b/plugins/user/profile/profile.php index f7512f0591da7..49584b27b119f 100644 --- a/plugins/user/profile/profile.php +++ b/plugins/user/profile/profile.php @@ -353,7 +353,7 @@ public function onUserBeforeSave($user, $isnew, $data) $data['profile']['website'] = JStringPunycode::urlToPunycode($data['profile']['website']); $date = new JDate($data['profile']['dob']); - $this->date = $date->format('Y-m-d'); + $this->date = $date->format('Y-m-d H:i:s'); } catch (Exception $e) { diff --git a/plugins/user/profile/profiles/profile.xml b/plugins/user/profile/profiles/profile.xml index a39c90e4e1a8e..2f58e90374023 100644 --- a/plugins/user/profile/profiles/profile.xml +++ b/plugins/user/profile/profiles/profile.xml @@ -100,7 +100,7 @@ rows="5" filter="safehtml" /> - <field name="dob_spacer" type="spacer" + <field name="dob_spacer" type="spacer" class="text" label="PLG_USER_PROFILE_SPACER_DOB" /> @@ -110,6 +110,7 @@ label="PLG_USER_PROFILE_FIELD_DOB_LABEL" description="PLG_USER_PROFILE_FIELD_DOB_DESC" format="%Y-%m-%d" + filter="server_utc" /> <field name="tos"