Commit 65ddfde4428f5552253fe25a008848daef060421
1 parent
4f404e20
09.02.16
Showing
2 changed files
with
3 additions
and
0 deletions
Show diff stats
common/config/main.php
common/models/UserInfo.php
@@ -79,6 +79,8 @@ class UserInfo extends \yii\db\ActiveRecord | @@ -79,6 +79,8 @@ class UserInfo extends \yii\db\ActiveRecord | ||
79 | 79 | ||
80 | 80 | ||
81 | public function getLastVisit(){ | 81 | public function getLastVisit(){ |
82 | + print date('Y-m-d h:m:s'); | ||
83 | + die(); | ||
82 | return \Yii::$app->formatter->asRelativeTime(date('Y-m-d h:m:s',strtotime($this->date_visit))); | 84 | return \Yii::$app->formatter->asRelativeTime(date('Y-m-d h:m:s',strtotime($this->date_visit))); |
83 | } | 85 | } |
84 | 86 |