php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66477 Small error in example of IntlDateFormatter::setLenient
Submitted: 2014-01-13 15:22 UTC Modified: 2015-04-20 15:27 UTC
From: hello at apfelbox dot net Assigned: pasindu (profile)
Status: Closed Package: intl (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2014-01-13 15:22 UTC] 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



Patches

set-lenient-ex.patch (last revision 2015-04-17 18:32 UTC by cmb@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-17 18:32 UTC] 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
 [2015-04-17 18:33 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2015-04-17 18:35 UTC] cmb@php.net
-Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: intl
 [2015-04-20 15:26 UTC] pasindu@php.net
Automatic comment from SVN on behalf of pasindu
Revision: http://svn.php.net/viewvc/?view=revision&revision=336605
Log: Fix #66477 ( By Christoph Becker )
 [2015-04-20 15:27 UTC] pasindu@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: pasindu
 [2015-04-20 15:27 UTC] pasindu@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:08 UTC] phpdocbot@php.net
Automatic comment on behalf of pasindu
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=761cdaefbfbeb78e20c6ce5b6a333006496d18a4
Log: Fix #66477 ( By Christoph Becker )
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC