Commit 65ddfde4428f5552253fe25a008848daef060421

Authored by Administrator
1 parent 4f404e20

09.02.16

Showing 2 changed files with 3 additions and 0 deletions   Show diff stats
common/config/main.php
1 <?php 1 <?php
2 return [ 2 return [
  3 + 'timeZone' => 'Europe/Kiev',
3 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 4 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
4 'controllerMap' => [ 5 'controllerMap' => [
5 'elfinder' => [ 6 'elfinder' => [
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