Difference between #2 and #3 of
Using International Dates

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);
```

 
15 0
24 followers
Viewed: 49 185 times
Version: 1.1
Category: How-tos
Written by: Russell England
Last updated by: nkd
Created on: Apr 28, 2011
Last updated: 11 years ago
Update Article

Revisions

View all history