Skip to content

Commit

Permalink
Replace Yii::$app->formatter->getMomentDatetimeFormat() with \centige…
Browse files Browse the repository at this point in the history
…n\base\helpers\DateHelper::getMomentDatetimeFormat()
  • Loading branch information
thecodeholic committed Jun 20, 2017
1 parent fa7275d commit bbfd064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/article/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<?php echo $form->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',
]
) ?>

Expand Down

0 comments on commit bbfd064

Please sign in to comment.