public function registerFormatter()
    {
        if ($this->module->formatterComponent !== true && !is_string($this->module->formatterComponent) && !is_array($this->module->formatterComponent)) {
            throw new InvalidConfigException('Invalid value for the formatterComponent parameter.');
        }
        if (is_string($this->module->formatterComponent)) {
            return;
        }
        $this->module->set('podium_formatter', is_array($this->module->formatterComponent)
                ? $this->module->formatterComponent
                : [
                    'class' => 'yii\i18n\Formatter',
                    'timeZone' => 'UTC',
                ]);
    }
public function registerFormatter()
    {
        if ($this->module->formatterComponent !== true && !is_string($this->module->formatterComponent) && !is_array($this->module->formatterComponent)) {
            throw new InvalidConfigException('Invalid value for the formatterComponent parameter.');
        }
        if (is_string($this->module->formatterComponent)) {
            return;
        }
        $this->module->set('podium_formatter', is_array($this->module->formatterComponent)
                ? $this->module->formatterComponent
                : [
                    'class' => 'yii\i18n\Formatter',
                    'timeZone' => 'UTC',
                ]);
    }
public function registerFormatter ( ) { if ( $ this -> module -> formatterComponent !== true && ! is_string ( $ this -> module -> formatterComponent ) && ! is_array ( $ this -> module -> formatterComponent ) ) { throw new InvalidConfigException ( 'Invalid value for the formatterComponent parameter.' ) ; } if ( is_string ( $ this -> module -> formatterComponent ) ) { return ; } $ this -> module -> set ( 'podium_formatter' , is_array ( $ this -> module -> formatterComponent ) ? $ this -> module -> formatterComponent : [ 'class' => 'yii\i18n\Formatter' , 'timeZone' => 'UTC' , ] ) ; }
Registers formatter with default time zone.
@throws InvalidConfigException
Registers formatter with default time zone .