Re: re-format mysql-dates - any generic solution?

2010-05-07 Thread Renato de Freitas Freire
You have always the option to use the afterfind() method... But I think you need to use it in every model... There is an exemple in cake book doing exactly this: http://book.cakephp.org/view/681/afterFind function afterFind($results) { foreach

Re: re-format mysql-dates - any generic solution?

2010-05-07 Thread Andrei Mita
I only saw "several" views in your e-mail :) You can always say NO or explain the situation. Who am I kidding here marketing people understanding? :) You can change the way your database stores dates, but then you might have problems in other places like controllers and actions where you

Re: re-format mysql-dates - any generic solution?

2010-05-07 Thread leberle
Hey Andrei, thanks for your answer! Unfortunately we have A LOT of views (as i wrote), so editing all views and use the time-helper is not really an option :/ ...or the last one. On 6 Mai, 21:29, Andrei Mita wrote: > You can use the Time helper to format the date anyway you want, I think. > > >

Re: re-format mysql-dates - any generic solution?

2010-05-06 Thread Andrei Mita
You can use the Time helper to format the date anyway you want, I think. On Thu, May 6, 2010 at 6:33 PM, leberle wrote: > Hi, > > I'm looking for a generic way to re-format date-values i fetched from > mysqlso, the complete context: > > We have a complex cake web-app using a mysql db. So, t

re-format mysql-dates - any generic solution?

2010-05-06 Thread leberle
Hi, I'm looking for a generic way to re-format date-values i fetched from mysqlso, the complete context: We have a complex cake web-app using a mysql db. So, the default date- format returned by mysql is -mm-dd. This was fine for a long time. Now our lovely marketing has decided that our