mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 02:14:33 -04:00
Make all timestamps microtime stamps
This commit is contained in:
parent
6333a2e8c5
commit
e8d92f627d
@ -14,6 +14,8 @@ class BaseModel extends Model
|
|||||||
use UserSessionAttributes;
|
use UserSessionAttributes;
|
||||||
use SoftDeletes;
|
use SoftDeletes;
|
||||||
|
|
||||||
|
protected $dateFormat = 'Y-m-d H:i:s.u';
|
||||||
|
|
||||||
public function __call($method, $params)
|
public function __call($method, $params)
|
||||||
{
|
{
|
||||||
$entity = strtolower(class_basename($this));
|
$entity = strtolower(class_basename($this));
|
||||||
|
@ -15,6 +15,9 @@ class Document extends BaseModel
|
|||||||
'is_default',
|
'is_default',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
protected $dateFormat = 'Y-m-d H:i:s.u';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
|
@ -13,6 +13,9 @@ class Expense extends BaseModel
|
|||||||
'id',
|
'id',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
protected $dateFormat = 'Y-m-d H:i:s.u';
|
||||||
|
|
||||||
|
|
||||||
protected $appends = ['expense_id'];
|
protected $appends = ['expense_id'];
|
||||||
|
|
||||||
public function getRouteKeyName()
|
public function getRouteKeyName()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user