ZF2-488: Improve ease-of-use for i18n DateFormat view helper

Issue Type: Improvement Created: 2012-08-22T09:05:57.000+0000 Last Updated: 2012-10-08T20:14:55.000+0000 Status: Closed Fix version(s): Reporter: Ralf Eggert (ralf) Assignee: None Tags: - Zend\I18n

Related issues: Attachments:


Two things make the use of the DateFormat view helper a little complicated.

  1. I always need to pass the $dateType and $timeType since the defaults do not feed my needs. The NumberFormat and CurrencyFormat have setters and getters for $formatStyle and $formatType (NumberFormat) and $currencyCode (CurrencyFormat). I would love to have some setters and getters for DateFormat as well.
  2. I need to pass a DateTime object to the DateFormat view helper. Passing just a date string like from mysql (YYYY-MM-DD HH:II:SS) does not output anything. I would love to have a check that could be added to DateFormat view helper that creates a DateTime object automatically when a date string is passed.


Posted by Ralf Eggert (ralf) on 2012-08-22T09:07:55.000+0000

feed my needs should be called fit my needs... ;-)

Posted by Ralph Schindler (ralph) on 2012-10-08T20:14:55.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

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.