Formato correcto de fecha
This commit is contained in:
@ -34,13 +34,13 @@ class Subscription extends Ideal\Repository
|
||||
{
|
||||
$model->id = $this->saveNew(
|
||||
['venta_id', 'toku_id', 'created_at'],
|
||||
[$model->venta->id, $model->toku_id, (new DateTimeImmutable())->format('Y-m-d H:i:s.u')]
|
||||
[$model->venta->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\Subscription
|
||||
{
|
||||
return $this->update($model, ['venta_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, ['venta_id', 'toku_id', 'updated_at'], array_merge($new_data, ['updated_at' => (new DateTimeImmutable())->format('Y-m-d H:i:s')]));
|
||||
}
|
||||
|
||||
public function fetchByVenta(int $venta_id): Model\Venta\MediosPago\Toku\Subscription
|
||||
|
Reference in New Issue
Block a user