mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for transformer timestamp
This commit is contained in:
parent
31891fe1b7
commit
0f20fcc497
@ -35,7 +35,7 @@ class EntityTransformer extends TransformerAbstract
|
|||||||
|
|
||||||
protected function getTimestamp($date)
|
protected function getTimestamp($date)
|
||||||
{
|
{
|
||||||
return $date ? $date->getTimestamp() : null;
|
return method_exists($date, 'getTimestamp') ? $date->getTimestamp() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDefaultIncludes()
|
public function getDefaultIncludes()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user