Formato correcto de fecha
This commit is contained in:
@ -33,13 +33,13 @@ class Invoice extends Ideal\Repository
|
||||
{
|
||||
$model->id = $this->saveNew(
|
||||
['cuota_id', 'toku_id', 'created_at'],
|
||||
[$model->cuota->id, $model->toku_id, (new DateTimeImmutable())->format('Y-m-d H:i:s.u')]
|
||||
[$model->cuota->id, $model->toku_id, (new DateTimeImmutable())->format('Y-m-d H:i:s')]
|
||||
);
|
||||
return $model;
|
||||
}
|
||||
public function edit(Define\Model $model, array $new_data): Model\Venta\MediosPago\Toku\Invoice
|
||||
{
|
||||
return $this->update($model, ['cuota_id', 'toku_id', 'updated_at'], array_merge($new_data, ['updated_at' => (new DateTimeImmutable())->format('Y-m-d H:i:s.u')]));
|
||||
return $this->update($model, ['cuota_id', 'toku_id', 'updated_at'], array_merge($new_data, ['updated_at' => (new DateTimeImmutable())->format('Y-m-d H:i:s')]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user