diff --git a/views/article/_form.php b/views/article/_form.php index 7f326a5..d77c904 100644 --- a/views/article/_form.php +++ b/views/article/_form.php @@ -98,7 +98,7 @@ field($model, 'published_at')->widget( 'trntv\yii\datetime\DateTimeWidget', [ - 'momentDatetimeFormat' => Yii::$app->formatter->getMomentDatetimeFormat() ?: 'yyyy-MM-dd\'T\'HH:mm:ssZZZZZ', + 'momentDatetimeFormat' => \centigen\base\helpers\DateHelper::getMomentDatetimeFormat() ?: 'yyyy-MM-dd\'T\'HH:mm:ssZZZZZ', ] ) ?>