Zend Framework

Zend_Date toString('e') function counts weekdays now from 0

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.4
  • Fix Version/s: 1.9.0
  • Component/s: Zend_Date
  • Labels:
    None
  • Language:
    English

Description

The Zend_Date toString() function with parameter 'e' counts weekdays now from 0 instate from 1 like it is written in the documentation.

Activity

Hide
Thomas Weidner added a comment -

'e' which is equal to WEEKDAY_DIGIT counts from 0 to 6 as mentioned in the manual.

I have not found a description where it was mentioned that it counts from 1 to 7 (which is only the case for WEEKDAY_8601).

Show
Thomas Weidner added a comment - 'e' which is equal to WEEKDAY_DIGIT counts from 0 to 6 as mentioned in the manual. I have not found a description where it was mentioned that it counts from 1 to 7 (which is only the case for WEEKDAY_8601).
Hide
Thomas Weidner added a comment -

Mentioned issue not reproducable.

Fixed only a wrong constant (which also uses 0-6) but no description like mentioned from the reporter has been found.

Show
Thomas Weidner added a comment - Mentioned issue not reproducable. Fixed only a wrong constant (which also uses 0-6) but no description like mentioned from the reporter has been found.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: