Ops, i am really sorry for this. Shortly after writing i searched with the right keywords and found this http://framework.zend.com/issues/browse/ZF-5297
My fault :) Regards, Fernando Morgenstern [email protected] Em 15/01/2011, às 10:44, Fernando Marcelo escreveu: > Hi, > > I use Zend Date to get a localized date and transform into MySQL format. > Today i verified a strange bug (?) that is causing a lot of issues with some > of my reports. > > Here is a stand alone example: > > $zendDate = new Zend_Date('2011-01-01 00:00:00', 'YYYY-MM-dd HH:mm:ss'); > Zend_Debug::dump($zendDate->get('YYYY')); > Zend_Debug::dump($zendDate->get('YYYY-MM-dd HH:mm:ss')); > > I am not sure if i am doing something wrong but the output that i get is: > > string(4) "2010" > string(19) "2010-01-01 00:00:00" > While i expect the year to be 2011. > > Any ideas of why i am getting this result? > > I am using the latest ZF version. > > Regards, > > Fernando Morgenstern > [email protected] > > > >
