From f3e62db6cd41c6653ba528d4fface8ea2a0cb2fa Mon Sep 17 00:00:00 2001 From: Pierre-Lin Bonnemaison Date: Wed, 23 Sep 2015 15:50:49 +0200 Subject: [PATCH] Fix du format de l'interval --- controllers/internalConsole.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/internalConsole.php b/controllers/internalConsole.php index 200e993..f2f329a 100755 --- a/controllers/internalConsole.php +++ b/controllers/internalConsole.php @@ -255,7 +255,7 @@ //On récupère les SMS pas encore validé, uniquement sur les dernières 12h $now = new DateTime(); - $interval = new DateInterval('P12H'); + $interval = new DateInterval('PT12H'); $sinceDate = $now->sub($interval)->format('Y-m-d H:i:s'); if (!$sendeds = $db->getFromTableWhere('sendeds', ['target' => $number, 'delivered' => false, 'failed' => false, '>at' => $sinceDate], 'at', false, 1))