mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -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 SoftDeletes;
|
||||
|
||||
protected $dateFormat = 'Y-m-d H:i:s.u';
|
||||
|
||||
public function __call($method, $params)
|
||||
{
|
||||
$entity = strtolower(class_basename($this));
|
||||
|
@ -15,6 +15,9 @@ class Document extends BaseModel
|
||||
'is_default',
|
||||
];
|
||||
|
||||
protected $dateFormat = 'Y-m-d H:i:s.u';
|
||||
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
|
@ -13,6 +13,9 @@ class Expense extends BaseModel
|
||||
'id',
|
||||
];
|
||||
|
||||
protected $dateFormat = 'Y-m-d H:i:s.u';
|
||||
|
||||
|
||||
protected $appends = ['expense_id'];
|
||||
|
||||
public function getRouteKeyName()
|
||||
|
Loading…
x
Reference in New Issue
Block a user