fix all issues before deploy
This commit is contained in:
@@ -124,8 +124,15 @@ $selectedYear = trim((string)($selectedYear ?? ''));
|
||||
}
|
||||
}
|
||||
|
||||
// Input-safe values
|
||||
$dobVal = $dobDisp;
|
||||
// Browser date inputs require ISO dates even when the table displays local mm-dd-YYYY.
|
||||
$dobVal = '';
|
||||
if (!empty($student['dob'])) {
|
||||
try {
|
||||
$dobVal = (new DateTime($student['dob']))->format('Y-m-d');
|
||||
} catch (\Throwable $e) {
|
||||
$dobVal = '';
|
||||
}
|
||||
}
|
||||
$regDateLocal = '';
|
||||
if (!empty($student['registration_date'])) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user