views:

156

answers:

1

I want to use the CakePHP Helper "time" and his method niceShort to transform a date into a nice, easy to read one. Instead of the english default transformation I want to use a localized version (in my case: "german") but I don't know where to set this. How can I localize this method?

echo $time->niceShort($comment['created']);
A: 

I don't think cake handles date localization very well you might need to use $time->format() see http://cakeqs.org/eng/questions/view/localizing_time_helper and this ticket http://cakephp.lighthouseapp.com/projects/42648/tickets/638-time-helper-i18n

Sam D