Container

This commit is contained in:
2020-01-07 12:25:52 -03:00
parent 2300ca5641
commit 782e79dd30
19 changed files with 60 additions and 60 deletions

View File

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