[fw-general] Zend date add/sub methods don't change year ?

2010-09-18 Thread debussy007
Hello, When I add a second to '2010-12-31 23:59:59', I get '2010-01-01 00:00:00'. Instead of 2011 I have 2010 Test code : $t = '2010-12-31 23:59:59'; $zd = new Zend_Date($t, '-MM-dd HH:mm:ss'); echo $zd->get('-MM-dd HH:mm:ss'); echo ''; $zd->addSecond(1); echo $zd->get('-MM-dd HH:mm

[fw-general] Custom Validator Translation

2010-09-18 Thread Sergio Rinaudo
Hi all, how to translate messages from a custom validator? For all built-in validator I use to create the {validator_name}.php file within the languages/{language_code} directory, ex languages/it/Zend_Validate_Between.php and this works, but for custom validator it seems this is not working,

RE: [fw-general] Can you have multiple databases?

2010-09-18 Thread Terre Porter
This is what I'm using for a multi-database setup. If you're using Zend_Db_Table, this works nicely with setting the db params in the application.ini file while allowing you to specify a different db connection your dttable files. Of course make adjustments for the class naming and your

AW: [fw-general] Zend date add/sub methods don't change year ?

2010-09-18 Thread Thomas Weidner
Look into the FAQ and the manual what the difference between "Y" and "y" is. Best regards, Thomas Weidner Zend Framework Certified Engineer & I18N Team Leader http://www.thomasweidner.com -Ursprüngliche Nachricht- Von: debussy007 [mailto:debussy...@gmail.com] Gesendet: Samstag, 18. Sept

Re: [fw-general] Zend date add/sub methods don't change year ?

2010-09-18 Thread till
On Sat, Sep 18, 2010 at 12:17 PM, debussy007 wrote: > > Hello, > > When I add a second to '2010-12-31 23:59:59', I get '2010-01-01 00:00:00'. > Instead of 2011 I have 2010 > > Test code : > > $t = '2010-12-31 23:59:59'; > $zd = new Zend_Date($t, '-MM-dd HH:mm:ss'); > echo $zd->get('-MM-dd