Edit report at https://bugs.php.net/bug.php?id=61601&edit=1
ID: 61601
User updated by: koen at fotoloog dot org
Reported by: koen at fotoloog dot org
Summary: strftime format does not allow for all lower case
month/weekday
Status: Open
Type: Feature/Change Request
Package: Date/time related
Operating System: All
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
oke, seems like I missed the bit in the documentation that says strftime
formats according to locale settings.
I just tested on a Linux box (first had to install Dutch language support) AND
use setlocal() before calling strftime() and... it worked!
Sorry for wasting your valuable time on this one... I'll close.
Previous Comments:
------------------------------------------------------------------------
[2012-04-03 16:10:37] [email protected]
I have noticed that localized month names also come with the first letter in
lowercase, as opposed to the default behavior in English. Is this what this bug
report is all about? Your report is a little confusing, since there's already
parameters to format weekdays and months.
------------------------------------------------------------------------
[2012-04-02 11:48:30] koen at fotoloog dot org
I wrote "The usual way of writing the full/abbreviated name of a month or a
weekday" but I meant to write "The usual way of writing the full/abbreviated
name of a month or a weekday *for my locale*..."
------------------------------------------------------------------------
[2012-04-02 11:47:08] koen at fotoloog dot org
Description:
------------
---
>From manual page:
>http://www.php.net/function.strftime#refsect1-function.strftime-description
---
The usual way of writing the full/abbreviated name of a month or a weekday is
with all lower case letters, e.g. 'december' as opposed to 'December'. And
'maandag' as opposed to 'Monday'.
My locale is nl_nl. See
http://nl.wikipedia.org/wiki/Hoofdletter_in_de_Nederlandse_spelling#Perioden
(in Dutch) for explanation.
Request is to add format parameters for weekdays and months:
maandag;dinsdag;woensdag;donderdag;vrijdag;zaterdag;zondag
januari;februari;maart;april;mei;juni;juli;augustus;september;oktober;november;december
Test script:
---------------
not applicable.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61601&edit=1