mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Fix ErrorException: Object of class EGroupware\Api\DateTime could not be converted to string
It's happening as we removed __toString method from Api\DateTime to allow again direct comparing with comparison operators
This commit is contained in:
parent
9691a14279
commit
b1af8449fd
@ -533,7 +533,9 @@ abstract class Tracking
|
||||
if ($data[$name] == $old[$name]) continue;
|
||||
}
|
||||
}
|
||||
elseif (str_replace("\r", '', $old[$name]) == str_replace("\r", '', $data[$name]))
|
||||
elseif ($old[$name] == $data[$name] ||
|
||||
is_a($data[$name], \DateTime) ? (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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user