ZF-7913: Parameters 'w' and 'N' inverted with PHP format in toString function.

Description

Hello,

I just noticed a bug: parameters 'w' and 'N' inverted with PHP format in toString function.

Zend_Date::setOptions(array('format_type' => 'php')); $date = new Zend_Date('2009-09-20','Y-m-d'); // sunday day echo $date->toString('N', 'php', 'en'); // send 0, should send 7 echo $date->toString('w', 'php', 'en'); // send 7, should send 0

Thomas.

Comments

Fixed in core