Issues

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

Issue Type: Bug Created: 2009-09-21T09:03:52.000+0000 Last Updated: 2009-09-21T12:37:11.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: thomas (thomas963) Assignee: Thomas Weidner (thomas) Tags: - Zend_Date

Related issues: Attachments:

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

Posted by Thomas Weidner (thomas) on 2009-09-21T12:37:03.000+0000

Fixed in core

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts