TypeError thrown
date(): Argument #2 ($timestamp) must be of type ?int, string given