coerce string to int

This commit is contained in:
David Bomba 2022-04-13 00:32:39 +10:00
parent c466f2f154
commit e452c04214

View File

@ -168,7 +168,7 @@ abstract class QueryFilters
public function created_at($value) public function created_at($value)
{ {
$created_at = $value ? $value : 0; $created_at = $value ? (int)$value : 0;
$created_at = date('Y-m-d H:i:s', $value); $created_at = date('Y-m-d H:i:s', $value);