Invalid input datetime format of value: Magento ver. 2.3.5-p1

I have installed Magento ver. 2.3.5-p1 , the main shop is https://www.eyewearcanada.com , I also have set up a USA shop, the domain name is https://www.cheapglasses123.com.

I add a new product via https://www.eyewearcanada.com , the product can be added, and display properly when I edit this product and save it, I got the wrong message:

Invalid input datetime format of value ‘5/29/2020’

Here is how to fix the issue:

Edit: public_html/eyewearcanada.com/vendor/magento/framework/Stdlib/DateTime/Timezone.php

Replace:

private function appendTimeIfNeeded($date, $includeTime)
{
if ($includeTime && !preg_match(‘/\d{1}:\d{2}/’, $date)) {
$date .= ” 0:00am”;
}
return $date;
}

With:

private function appendTimeIfNeeded($date, $includeTime)
{
if (!preg_match(‘/\d{1,2}:\d{2}/’, $date)) {
$date .= ” 00:00″;
}
return $date;
}