Zend Framework

Date output format bug

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Not an Issue
  • Affects Version/s: None
  • Fix Version/s: Next Major Release
  • Component/s: Zend_Date
  • Labels:
    None

Description

Example:

$date = new Adept_Date('29.12.2008');
echo $date->toString('dd.MM.YYYY');

Result: 29.12.2009

But 2008 expected.

This bug happend today (29 Dec, on 28 Dec It works normally)

Version of Zend_Date: $Id: Date.php 13373 2008-12-19 12:22:49Z thomas $

Issue Links

Activity

Hide
Sergey Voyachek added a comment -

Same situation with:

$date = new Adept_Date();
$date->setDay(29);
$date->setMonth(12);
$date->setYear(2008);
echo $date->toString('dd.MM.YYYY');

So I think that problem is in output methods.

Show
Sergey Voyachek added a comment - Same situation with: $date = new Adept_Date(); $date->setDay(29); $date->setMonth(12); $date->setYear(2008); echo $date->toString('dd.MM.YYYY'); So I think that problem is in output methods.
Hide
Mickael Perraud added a comment -

Read the manual and use 'yyyy'

Show
Mickael Perraud added a comment - Read the manual and use 'yyyy'
Hide
Sergey Voyachek added a comment -

Yep... it helps

Show
Sergey Voyachek added a comment - Yep... it helps
Hide
Thomas Weidner added a comment -

Please do first look if a related issue already exist or has existed before creating same issues multiple times.

Show
Thomas Weidner added a comment - Please do first look if a related issue already exist or has existed before creating same issues multiple times.
Hide
Thomas Weidner added a comment -

Duplication of ZF-5297

Show
Thomas Weidner added a comment - Duplication of ZF-5297

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: