fix date format

This commit is contained in:
osaajani 2023-02-06 05:52:49 +01:00
parent 4f0c585f78
commit fdbc6a0878
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ namespace models;
*/
public function count_since_for_phone_and_user(int $id_user, int $id_phone, \DateTime $since) : int
{
return $this->_count('sended', ['id_user' => $id_user, 'id_phone' => $id_phone, '>=at' => $since]);
return $this->_count('sended', ['id_user' => $id_user, 'id_phone' => $id_phone, '>=at' => $since->format('c')]);
}
/**