Commit c3882035 by Carsten Brandt

Merge pull request #4001 from SDKiller/patch-2

Fix html markdown for span class="not-set" when time is not set
parents 39f5cbbf 85d06fbd
......@@ -4,8 +4,6 @@
use yii\helpers\Html;
use yii\widgets\DetailView;
$timeFormatter = extension_loaded('intl') ? Yii::createObject(['class' => 'yii\i18n\Formatter']) : Yii::$app->formatter;
echo DetailView::widget([
'model' => $model,
'attributes' => [
......@@ -15,7 +13,7 @@ echo DetailView::widget([
'charset',
[
'attribute' => 'time',
'value' => $timeFormatter->asDateTime($model['time'], 'short'),
'format' => 'datetime',
],
'subject',
[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment