Fix format date envoi
This commit is contained in:
parent
eeb4057ae0
commit
87e4ffac27
|
@ -145,7 +145,7 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!internalTools::validateDate($date, 'Y-m-d H:i:s'))
|
if (!internalTools::validateDate($date, 'Y-m-d H:i:s') && !internalTools::validateDate($date, 'Y-m-d H:i'))
|
||||||
{
|
{
|
||||||
if (!$api)
|
if (!$api)
|
||||||
{
|
{
|
||||||
|
@ -247,7 +247,7 @@
|
||||||
foreach ($_POST['scheduleds'] as $id_scheduled => $scheduled)
|
foreach ($_POST['scheduleds'] as $id_scheduled => $scheduled)
|
||||||
{
|
{
|
||||||
$date = $scheduled['date'];
|
$date = $scheduled['date'];
|
||||||
if (!internalTools::validateDate($date, 'Y-m-d H:i'))
|
if (!internalTools::validateDate($date, 'Y-m-d H:i:s') && !internalTools::validateDate($date, 'Y-m-d H:i'))
|
||||||
{
|
{
|
||||||
$_SESSION['errormessage'] = 'La date renseignée pour le SMS numéro ' . $scheduled['id'] . ' est invalide.';
|
$_SESSION['errormessage'] = 'La date renseignée pour le SMS numéro ' . $scheduled['id'] . ' est invalide.';
|
||||||
header('Location: ' . $this->generateUrl('scheduleds'));
|
header('Location: ' . $this->generateUrl('scheduleds'));
|
||||||
|
|
Loading…
Reference in New Issue