Bug #66477 [Opn->Ver]: Small error in example of IntlDateFormatter::setLenient
| From: | cmb@php.net | Date: | Fri, 17 Apr 2015 18:33:13 +0000 |
| Subject: | Bug #66477 [Opn->Ver]: Small error in example of IntlDateFormatter::setLenient | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12191@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66477&edit=1
ID: 66477
Updated by: cmb@php.net
Reported by: hello at apfelbox dot net
Summary: Small error in example of
IntlDateFormatter::setLenient
-Status: Open
+Status: Verified
Type: Bug
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2015-04-17 18:32:46] cmb@php.net
The following patch has been added/updated:
Patch Name: set-lenient-ex.patch
Revision: 1429295566
URL: https://bugs.php.net/patch-display.php?bug=66477&patch=set-lenient-ex.patch&revision=1429295566
------------------------------------------------------------------------
[2014-01-13 15:22:34] hello at apfelbox dot net
Description:
------------
Hi,
the example uses
$fmt = datefmt_create(
// ...
'dd/mm/yyyy'
);
instead it should probably be "MM", since "MM" marks months and "mm"
is for minutes.
See: http://userguide.icu-project.org/formatparse/datetime#TOC-Date-Time-Format-Syntax
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66477&edit=1