update
This commit is contained in:
@@ -341,11 +341,14 @@ class MemberEnrollmentService
|
|||||||
if ($date_from_row instanceof DateTime) {
|
if ($date_from_row instanceof DateTime) {
|
||||||
return $date_from_row->format('Y-m-d');
|
return $date_from_row->format('Y-m-d');
|
||||||
} else if ($date_from_row != null) {
|
} else if ($date_from_row != null) {
|
||||||
return date('Y-m-d', strtotime($date_from_row));
|
if (strtotime($date_from_row)){
|
||||||
|
return date('Y-m-d', strtotime($date_from_row));
|
||||||
|
} else {
|
||||||
|
throw new ImportRowException(__('Format Date Invalid'), 0, null, $row);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return null;
|
throw new ImportRowException(__('Format Date Invalid'), 0, null, $row);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validateDate($dateString, $dateFormat = 'Ymd'){
|
public function validateDate($dateString, $dateFormat = 'Ymd'){
|
||||||
|
|||||||
Reference in New Issue
Block a user