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:
parent
681bfe4c69
commit
ae88ebf6a4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user