Index: branches/unlabeled/unlabeled-1.65.2/kernel/frontaction.php =================================================================== diff -u -r3874 -r3962 --- branches/unlabeled/unlabeled-1.65.2/kernel/frontaction.php (.../frontaction.php) (revision 3874) +++ branches/unlabeled/unlabeled-1.65.2/kernel/frontaction.php (.../frontaction.php) (revision 3962) @@ -451,16 +451,15 @@ if($Status>0) { - if($objConfig->Get("User_Password_Auto")) - { + if ($objConfig->Get("User_Password_Auto")) { $password = makepassword(); $objSession->Set("password", $password); } - else + else { $password = $_POST["password"]; - - $_POST["dob"] = $_POST["dob_month"]."/".$_POST["dob_day"]."/".$_POST["dob_year"]; - $dob = DateTimestamp($_POST["dob"],GetDateFormat()); + } + + $dob = adodb_mktime(0, 0, 0, $_POST['dob_month'], $_POST['dob_day'], $_POST['dob_year']); $ip = $_SERVER['REMOTE_ADDR']; $u = &$objUsers->Add_User($_POST["username"], md5($password), $_POST["email"], $CreatedOn, $_POST["firstname"], $_POST["lastname"], $Status, $_POST["phone"], $_POST["street"], $_POST["city"], $_POST["state"], $_POST["zip"], $_POST["country"], $dob, $ip, TRUE); @@ -602,8 +601,7 @@ /* save profile */ $u =& $objUsers->GetItem($UserId); $status = $u->Get("Status"); - $_POST["dob"] = $_POST["dob_month"]."/".$_POST["dob_day"]."/".$_POST["dob_year"]; - $dob = DateTimestamp($_POST["dob"], GetDateFormat()); + $dob = adodb_mktime(0, 0, 0, $_POST['dob_month'], $_POST['dob_day'], $_POST['dob_year']); if(strlen($_POST["password"])>0) { $password = md5($_POST["password"]);