1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00

Fix for transformer timestamp

This commit is contained in:
Hillel Coren 2017-01-08 12:32:03 +02:00
parent 681bfe4c69
commit ae88ebf6a4

View File

@ -35,7 +35,7 @@ class EntityTransformer extends TransformerAbstract
protected function getTimestamp($date)
{
return $date ? $date->getTimestamp() : null;
return method_exists($date, 'getTimestamp') ? $date->getTimestamp() : null;
}
public function getDefaultIncludes()