Skip to content

Commit

Permalink
Merge pull request #2 from yakovlev-vladimir/master
Browse files Browse the repository at this point in the history
Fix render attribute datetime ISO 8601
  • Loading branch information
zinzinday committed Jan 31, 2015
2 parents 569432b + 9a835b7 commit b91f696
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 b91f696

Please sign in to comment.