From bbfd064440faf54c40d6b9f069d8cec8d370b797 Mon Sep 17 00:00:00 2001 From: Zura Sekhniashvili Date: Tue, 20 Jun 2017 16:03:52 +0400 Subject: [PATCH] Replace Yii::$app->formatter->getMomentDatetimeFormat() with \centigen\base\helpers\DateHelper::getMomentDatetimeFormat() --- views/article/_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', ] ) ?>