I’m tring to leverage the i18n-datetime-behavior extension to correctly format dates between database (Y-m-d H:i:s) and display (d-m-Y H:i:s).
I modified my model by adding the behaviors as specified on the web page (http://www.yiiframework.com/extension/i18n-datetime-behavior/)
public function behaviors()
{
return array(
'data_primo_utilizzo' => array( 'class' => 'ext.DateTimeI18NBehavior'),
'data_modifica' => array( 'class' => 'ext.DateTimeI18NBehavior'),
);
}
But then when I visit the detail view of an AR the date is still in database format.
What am I missing?
thanks