mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Merge pull request #21 from memento/master
Ajout d'un zeste de précision dans l'horaire d'envoi du SMS
This commit is contained in:
commit
a89b0c79ad
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@
|
|||
{
|
||||
echo " Envoi d'un SMS au " . $number . "\n";
|
||||
//On ajoute le SMS aux SMS envoyés
|
||||
//Pour plus de précision, on remet la date à jour en réinstanciant l'objet DateTime (et on reformatte la date, bien entendu)
|
||||
$now = new DateTime();
|
||||
$now = $now->format('Y-m-d H:i:s');
|
||||
//On peut maintenant ajouter le SMS
|
||||
$db->createSended($now, $number, $scheduled['content']);
|
||||
$id_sended = $db->lastId();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue