#22453 [Fbk->Opn]: Incorrect display of date when locale set to Greek
| From: | bendilas at otenet dot gr | Date: | Thu, 27 Feb 2003 15:10:50 +0000 |
| Subject: | #22453 [Fbk->Opn]: Incorrect display of date when locale set to Greek | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-34433@lists.php.net to get a copy of this message | ||
ID: 22453
User updated by: bendilas at otenet dot gr
Reported By: bendilas at otenet dot gr
-Status: Feedback
+Status: Open
Bug Type: Date/time related
Operating System: WinXP - SP1 + Apache 2.0.43
PHP Version: 4.3.0
New Comment:
I tried the Windows snapshot but both errors remail still.
Previous Comments:
------------------------------------------------------------------------
[2003-02-27 08:08:13] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-02-27 06:11:01] bendilas at otenet dot gr
Setting the locale to Greek using setlocale("LC_TIME", "GR") gets me a
wrong display of date.
Specifically, the standard short date format in Greek is day/month/year
but when I try echo strftime("%c") I get "2/27/2003" which is a
month/day/year format.
Also, when I try echo strftime("%A, %e %B, %Y") I get "ÐÝìðôç,
ÖåâñïõÜñéïò, 2003" which has two errors:
1. %e doesn't have any effect so the day number isn't displayed at all
2. The correct format would have been "ÐÝìðôç, 27 Öåâñïõáñßïõ, 2003"
which means that when there is a day number in front of a month, the
month is displayed in genitive form (grammatically speaking).
The months in Greek are:
ÉáíïõÜñéïò
ÖåâñïõÜñéïò
ÌÜñôéïò
Áðñßëéïò
ÌÜéïò
Éïýíéïò
Éïýëéïò
Áýãïõóôïò
ÓåðôÝìâñéïò
Ïêôþâñéïò
ÍïÝìâñéïò
ÄåêÝìâñéïò
Their genitive form (which should be used ONLY when formatting
parameters "%e %B" are used side by side in that speficic order) is:
Éáíïõáñßïõ
Öåâñïõáñßïõ
Ìáñôßïõ
Áðñéëßïõ
ÌáÀïõ
Éïõíßïõ
Éïõëßïõ
Áõãïýóôïõ
Óåðôåìâñßïõ
Ïêôùâñßïõ
Íïåìâñßïõ
Äåêåìâñßïõ
Note: Windows XP in Control Panel> Regional and Language options
displays the correct format under "Long date"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22453&edit=1