It turns out that we need to get a date string from our DateTime object and pass that
into the comment_date parameter instead.
$comment_date = $the_date->format(‘Y-m-d H:i:s’);
It turns out that we need to get a date string from our DateTime object and pass that
into the comment_date parameter instead.
$comment_date = $the_date->format(‘Y-m-d H:i:s’);