mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Fix du format de l'interval
This commit is contained in:
parent
59f0023c96
commit
f3e62db6cd
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue