#49259 [Opn->WFx]: Add month 13 to date_parse()
| From: | derick@php.net | Date: | Fri, 14 Aug 2009 23:30:15 +0000 |
| Subject: | #49259 [Opn->WFx]: Add month 13 to date_parse() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141068@lists.php.net to get a copy of this message | ||
ID: 49259
Updated by: derick@php.net
Reported By: alan at wilcoxengineering dot com
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 5.2.10
New Comment:
The date_parse() function is meant to parse dates in the proleptic
Gregorian calendar.
Previous Comments:
------------------------------------------------------------------------
[2009-08-14 18:02:26] alan at wilcoxengineering dot com
Description:
------------
date_parse expects months 1..12 only.
date_parse("13/1/5769") for month=13, Ehul in Jewish calendar,
results
in month==3 instead of month==13.
It does, however, report the error array showing "Unexpected
Character."
It would be nice if date_parse could handle the months properly (just
report back a "13" for the month). The older approach of substr() is my
workaround.
Reproduce code:
---------------
---
From manual page: function.date-parse
---
date_parse("13/1/5769")
Expected result:
----------------
Array for month should show 13 instead of 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49259&edit=1