Skip to content

Commit

Permalink
Different birth date values in the profile and database #6285
Browse files Browse the repository at this point in the history
  • Loading branch information
810 committed Jul 19, 2019
1 parent 08a6fbb commit 7410e83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/com_kunena/controllers/user.php
Expand Up @@ -992,6 +992,11 @@ protected function saveProfile()

if ($birthdate)
{
if ($birthdate == '11/30/-0001')
{
$birthdate = '1901/01/01';
}

$date = Factory::getDate($birthdate);

$birthdate = $date->format('Y-m-d');
Expand Down

0 comments on commit 7410e83

Please sign in to comment.