Cambios revisados en controles

This commit is contained in:
2020-01-06 19:09:44 -03:00
parent 82beb3b1c4
commit affaf514fb
8 changed files with 27 additions and 6 deletions

View File

@ -69,7 +69,7 @@ class Cierre extends Model
public function fecha(\DateTime $fecha = null)
{
if ($fecha == null) {
return Carbon::parse($this->fecha, 'America/Santiago');//, config('app.timezone'));
return Carbon::parse($this->fecha, $this->container->get('settings')->app->timezone);//, config('app.timezone'));
}
$this->fecha = $fecha->format('Y-m-d');
}