$data->format('Y-m-d H:i:s') can't possibly be an integer