Fixing the fix Undefined constant DateTime

This commit is contained in:
Ralf Becker 2021-03-02 10:25:11 +02:00
parent b1af8449fd
commit 89d6dc8650

View File

@ -534,7 +534,7 @@ abstract class Tracking
}
}
elseif ($old[$name] == $data[$name] ||
is_a($data[$name], \DateTime) ? (new Api\DateTime($old[$name], $data[$name]->getTimezone())) == $data[$name] :
is_a($data[$name], \DateTime::class) ? (new Api\DateTime($old[$name], $data[$name]->getTimezone())) == $data[$name] :
str_replace("\r", '', $old[$name]) == str_replace("\r", '', $data[$name]))
{
continue; // change only in CR (eg. different OS) --> ignore