Zend Framework

Error formatting date

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Not an Issue
  • Affects Version/s: 1.10.4
  • Fix Version/s: 1.10.5
  • Component/s: Zend_Date
  • Labels:
    None

Description

$date = new Zend_Date('2011-01-02', 'YYYY-MM-dd');
echo $date->get('YYYY-MM-dd');// 2010-01-02

Don't bug with any date...
The timestamp from the date seems to be ok

Activity

Hide
Thomas Weidner added a comment -

Closing as non-issue

Please read the manual and the FAQ on which constants to use

Show
Thomas Weidner added a comment - Closing as non-issue Please read the manual and the FAQ on which constants to use
Hide
Martin Supiot added a comment -

Ok, I understand the format.
So, sorry for the inconvenience

Show
Martin Supiot added a comment - Ok, I understand the format. So, sorry for the inconvenience

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: