refs #import date date time issue solved.
This commit is contained in:
@ -161,28 +161,6 @@ class Invoice extends Model
|
||||
$this->attributes['currency_rate'] = (double) $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert invoiced_at to datetime.
|
||||
*
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function setInvoicedAtAttribute($value)
|
||||
{
|
||||
$this->attributes['invoiced_at'] = $value . ' ' . Date::now()->format('H:i:s');
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert due_at to datetime.
|
||||
*
|
||||
* @param string $value
|
||||
* @return void
|
||||
*/
|
||||
public function setDueAtAttribute($value)
|
||||
{
|
||||
$this->attributes['due_at'] = $value . ' ' . Date::now()->format('H:i:s');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current balance.
|
||||
*
|
||||
|
Reference in New Issue
Block a user