ID: 14180 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Date/time related Operating System: linux PHP Version: 4.0CVS-2001-11-19 New Comment:
Confirming your bug (PHP 4.1.2 on W2k) setlocale() on windows is the problem! See bug #16718 http://bugs.php.net/bug.php?id=16718 Previous Comments: ------------------------------------------------------------------------ [2001-11-22 11:46:03] [EMAIL PROTECTED] thats an error in the locale file on your system and not a php problem good old "garbage in -> garbage out" ;) ------------------------------------------------------------------------ [2001-11-22 11:38:19] [EMAIL PROTECTED] I am doing this: setlocale('LC_TIME', 'is_IS'); $tmp_sDate = explode('-', $datestamp); $sDate = strftime('%d. %B %Y', mktime(10, 0, 0, $tmp_sDate[1], $tmp_sDate[2], $tmp_sDate[0])); Then I echo $sDate as the Icelandic date format I want. But here's the problem. There's a grammar error in this, the output from $sDate is like this: 22. Nóvember 2001 But it should be like this: 22. nóvember 2001 (small letter in the beginning of the name of the month). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14180&edit=1