diff --git a/app/Http/Livewire/ShowPlanes.php b/app/Http/Livewire/ShowPlanes.php index a2a0a00..263aa52 100755 --- a/app/Http/Livewire/ShowPlanes.php +++ b/app/Http/Livewire/ShowPlanes.php @@ -328,10 +328,10 @@ class ShowPlanes extends Component public function noRenovar() { if (is_string($this->fecha_inicial_renovar)) { - $this->fecha_inicial_renovar = \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $this->fecha_inicial_renovar); + $this->fecha_inicial_renovar = \Carbon\Carbon::createFromFormat('Y-m-d', $this->fecha_inicial_renovar); } if (is_string($this->fecha_final_renovar)) { - $this->fecha_final_renovar = \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $this->fecha_final_renovar); + $this->fecha_final_renovar = \Carbon\Carbon::createFromFormat('Y-m-d', $this->fecha_final_renovar); } // Ahora puedes calcular la diferencia en días $this->tiempo_usuario = $this->fecha_final_renovar->diffInDays($this->fecha_inicial_renovar);