Skip to content

Commit

Permalink
Fix render attribute datetime ISO 8601
Browse files Browse the repository at this point in the history
  • Loading branch information
yakovlev-vladimir committed Jan 29, 2015
1 parent 569432b commit 9a835b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TimeAgo.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function getAssetBundle()
public function run()
{
if ($this->timestamp) {
echo Html::tag($this->tag, Yii::$app->formatter->asDatetime($this->timestamp), ArrayHelper::merge($this->options, ['datetime' => Yii::$app->formatter->asDatetime($this->timestamp)]));
echo Html::tag($this->tag, Yii::$app->formatter->asDatetime($this->timestamp), ArrayHelper::merge($this->options, ['datetime' => Yii::$app->formatter->asDatetime($this->timestamp, "php:c")]));
}
}

Expand Down

0 comments on commit 9a835b7

Please sign in to comment.