zendframework / zf1

This project reached its end-of-life on 2016-09-28. Contains conversion of ZF1 subversion repo to git, from version 15234 forward, and only containing master and release-1.12 branches and 1.12 tags.
https://framework.zend.com/blog/2016-06-28-zf1-eol.html
BSD 3-Clause "New" or "Revised" License
357 stars 801 forks source link

Zend Locale Data pattern incorrect for Finnish full date #562

Open mam08ixo opened 9 years ago

mam08ixo commented 9 years ago

Since ZF 1.12.4 there is an erroneous date pattern in fi.xml.

public function testFullDateSuomi()
{
    $date = new Zend_Date(1000000);

    $this->assertEquals(
        'Monday, January 12, 1970',
        $date->get(Zend_Date::DATE_FULL, new Zend_Locale('en_US'))
    );
    // OK

    $this->assertEquals(
        'maanantaina 12. tammikuuta 1970',
        $date->get(Zend_Date::DATE_FULL, new Zend_Locale('fi_FI'))
    );
    // FAILURE
    // +'cccc 12. tammikuuta 1970'
    // -'maanantaina 12. tammikuuta 1970'
}
froschdesign commented 9 years ago
  1. The file "fi.xml" is a part of the CLDR - Unicode Common Locale Data Repository and we can not change external libraries.
  2. The current implementation of Zend_Date has too many problems, so we can not update the CLDR library.

At the moment I see no chance to fix the problem.