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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hello at apfelbox dot net
New email:
PHP Version: OS:

 

 [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)

Pull Requests

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: Sat Dec 21 12:01:31 2024 UTC