BUG 12098 Notices cuando se envian fechas con mascara Fecha Static Dates SHM IMPROVEMENT
This commit is contained in:
@@ -4631,7 +4631,11 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText
|
||||
$ugly['tm_min'],
|
||||
$ugly['tm_sec']
|
||||
);
|
||||
try {
|
||||
$new_schedule = new DateTime($ymd);
|
||||
} catch (Exception $error) {
|
||||
$new_schedule = new DateTime();
|
||||
}
|
||||
return $new_schedule->format('Y-m-d' . ($withHours ? ' H:i:s' : ''));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user