src/Model/Model.php
protected function filterDateInstance($date): string
    {
        if (empty($date)) {
            $date = new \DateTime('now', new \DateTimeZone('Asia/Jakarta'));
        }

        if (is_string($date) || is_int($date)) {
            $date = new \DateTime($date, new \DateTimeZone('Asia/Jakarta'));
        }

        return $this->formatDate($date);
    }
protected function filterDateInstance($date): string
    {
        if (empty($date)) {
            $date = new \DateTime('now', new \DateTimeZone('Asia/Jakarta'));
        }

        if (is_string($date) || is_int($date)) {
            $date = new \DateTime($date, new \DateTimeZone('Asia/Jakarta'));
        }

        return $this->formatDate($date);
    }
Make Sure Date in string with correct format state

@param \DateTimeInterface|string|int|null $date