34k+
News
Guide
API
Wiki
Forum
Community
Places
Members
Hall of Fame
Badges
More
Learn
Books
Resources
Develop
Download Yii
Extensions
Report an Issue
Report a Security Issue
Contribute to Yii
Donate
About
Release Cycle
License
Team
Official Logos and Design
Login
Using International Dates
Comparing
#2
with
#3
Revision #3 was created by
nkd
on Nov 7, 2012, 12:16:48 PM.
modified afterFind() method to support timestampt function and to call parent::afterFind() at the end
« Previous (#2)
Content
[...]
'yyyy-MM-dd'
),
'short',null
);
}
elseif ($column->dbType == 'datetime'
|| $column->dbType == 'timestamp'
)
{
$this->$columnName = Yii::app()->dateFormatter->formatDateTime(
[...]
}
}
return
true
parent::afterFind()
;
}
[...]
```php
Yii::app()->setLanguage($lang);
```