libs/override/db/NpActiveRecord.php
public function init()
    {
        parent::init();

        $this->datetimeFormat = (empty(Yii::$app->params['site']->datetimeFormat)) ? $this->datetimeFormat : Yii::$app->params['site']->datetimeFormat;
        $this->timezone = (empty(Yii::$app->params['site']->timezone)) ? $this->timezone : Yii::$app->params['site']->timezone;
    }
public function init()
    {
        parent::init();

        $this->datetimeFormat = (empty(Yii::$app->params['site']->datetimeFormat)) ? $this->datetimeFormat : Yii::$app->params['site']->datetimeFormat;
        $this->timezone = (empty(Yii::$app->params['site']->timezone)) ? $this->timezone : Yii::$app->params['site']->timezone;
    }
public function init ( ) { parent :: init ( ) ; $ this -> datetimeFormat = ( empty ( Yii :: $ app -> params [ 'site' ] -> datetimeFormat ) ) ? $ this -> datetimeFormat : Yii :: $ app -> params [ 'site' ] -> datetimeFormat ; $ this -> timezone = ( empty ( Yii :: $ app -> params [ 'site' ] -> timezone ) ) ? $ this -> timezone : Yii :: $ app -> params [ 'site' ] -> timezone ; }
Set default timezone and datetime format for model
Set default timezone and datetime format for model