php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55729 [FR] Simple date mistake !
Submitted: 2011-09-19 20:14 UTC Modified: 2011-09-23 04:53 UTC
From: samuel-kay at 401kay dot fr Assigned: yannick (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: samuel-kay at 401kay dot fr
New email:
PHP Version: OS:

 

 [2011-09-19 20:14 UTC] samuel-kay at 401kay dot fr
Description:
------------
---
From manual page: http://www.php.net/function.date#refsect1-function.date-examples
---
In the French section but not in the English section.
In exemple 4, we have 
"// Aujourd'hui, le 12 Mars 2001, 5:16:18 pm, Fuseau horaire 
// Mountain Standard Time (MST)"
=> Today : 12th March 2001, 5:16:18

2nd line befor the end, we have :
$today = date('H:m:s \m \e\s\t\ \l\e\ \m\o\i\s'); // 17:16:18 m est le mois
"m stand for month".
ok, but the result should be // 17:03:18
So the difference with the next line should be easier to understand :
$today = date("H:i:s");                           // 17:16:18


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-21 16:29 UTC] nikic@php.net
-Summary: Simple date mistake ! +Summary: [FR] Simple date mistake ! -Package: Documentation problem +Package: Translation problem -Operating System: Linux / Irrelevant +Operating System: Irrelevant
 [2011-09-23 04:52 UTC] yannick@php.net
Automatic comment from SVN on behalf of yannick
Revision: http://svn.php.net/viewvc/?view=revision&revision=317175
Log: Fix bug #55729
 [2011-09-23 04:53 UTC] yannick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: yannick
 [2011-09-23 04:53 UTC] yannick@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-12-30 12:49 UTC] nikic@php.net
Automatic comment on behalf of yannick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=46184d5a290536110dbb36a783a40e466adfe6e3
Log: Fix bug #55729
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 11:01:30 2024 UTC