Revision #3 has been created by nkd on Nov 7, 2012, 12:16:48 PM with the memo:
modified afterFind() method to support timestampt function and to call parent::afterFind() at the end
« previous (#2)
Changes
Title
unchanged
Using International Dates
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
i18n, date, validation rules
Content
changed
[...]
'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);
```