Using International Dates

Comparing #2 with #3

Revision #3 was created by nkd nkd on Nov 7, 2012, 12:16:48 PM.

modified afterFind() method to support timestampt function and to call parent::afterFind() at the end

Content

[...]
'yyyy-MM-dd'
),
'short',null
);
}
elseif ($column->dbType == 'datetime'
 || $column->dbType == 'timestamp')
{
$this->$columnName = Yii::app()->dateFormatter->formatDateTime(
[...]
}
}
return
trueparent::afterFind();
}
[...]
```php
Yii::app()->setLanguage($lang);
```