ZF-10167: Format converting php natural => Zend_date failed for escaping backslash

Issue Type: Docs: Problem Created: 2010-07-16T04:47:49.000+0000 Last Updated: 2012-11-20T21:38:15.000+0000 Status: Open Fix version(s): Reporter: Ilya Gruzinov (shagren) Assignee: None Tags: - Zend_Date

  • Zend_Locale

Related issues: Attachments:


When we use format for Zend_Date which use escaped part it is not works. Example:

include_once 'Zend/Date.php'; Zend_Date::setOptions(array('format_type' => 'php')); $now = Zend_Date::now(); echo $now->toString('\Y\e\a\r: Y');


Year: 2010


\2010\System/Localtime\PM\Fri, 16 Jul 2010 14:42:22 +0300: 2010


Posted by Thomas Weidner (thomas) on 2010-07-29T11:06:36.000+0000

And why is this a bug? The backslash is no proper character for date formats within Zend_Date.

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-07-29T14:46:40.000+0000

I think the point is that one can't escape letters, to make sure they're displayed on as-is basis.

Posted by Thomas Weidner (thomas) on 2010-07-30T00:21:12.000+0000

But a feature which is not supported is not a bug. It's a not supported feature.

So "new feature" would be the expected issuetype in my opinion.

Posted by Ilya Gruzinov (shagren) on 2010-07-30T02:01:26.000+0000… There absent information about this behavior, then i expect 100% working of my old php date formats.

Lets add some information to documentation.

Have you found an issue?

See the Overview section for more details.


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

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