refs #import date date time issue solved.

This commit is contained in:
cuneytsenturk
2018-08-06 18:41:58 +03:00
parent dbc4bd7608
commit 56a046b866
19 changed files with 193 additions and 96 deletions

View File

@ -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.
*