protected function registerDateFactory()
    {
        $this->app->singleton(DateFactory::class, function ($app) {
            $appTimezone = $app['config']->get('app.timezone');
            $cacheTimezone = $app['config']->get('cachet.timezone');

            return new DateFactory($appTimezone, $cacheTimezone);
        });
    }
protected function registerDateFactory()
    {
        $this->app->singleton(DateFactory::class, function ($app) {
            $appTimezone = $app['config']->get('app.timezone');
            $cacheTimezone = $app['config']->get('cachet.timezone');

            return new DateFactory($appTimezone, $cacheTimezone);
        });
    }
protected function registerDateFactory ( ) { $ this -> app -> singleton ( DateFactory :: class , function ( $ app ) { $ appTimezone = $ app [ 'config' ] -> get ( 'app.timezone' ) ; $ cacheTimezone = $ app [ 'config' ] -> get ( 'cachet.timezone' ) ; return new DateFactory ( $ appTimezone , $ cacheTimezone ) ; } ) ; }
Register the date factory.

@return void
Register the date factory .