mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
fix parse condition
This commit is contained in:
@ -33,7 +33,7 @@ class Expense extends Model implements HasMedia
|
||||
public function setExpenseDateAttribute($value)
|
||||
{
|
||||
if ($value) {
|
||||
$this->attributes['expense_date'] = Carbon::createFromFormat('Y-m-d', $value);
|
||||
$this->attributes['expense_date'] = Carbon::parse($value)->format('Y-m-d');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user