php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33144 strftime() does not parse %n
Submitted: 2005-05-25 23:20 UTC Modified: 2005-05-25 23:31 UTC
From: jw at jwscripts dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.0.4 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jw at jwscripts dot com
New email:
PHP Version: OS:

 

 [2005-05-25 23:20 UTC] jw at jwscripts dot com
Description:
------------
The strftime() function does not translate %n into a new line character.

Reproduce code:
---------------
<pre>
<?php
print strftime("%c %n", time());
print strftime("%c %n", time());
?>
</pre>

Expected result:
----------------
05/25/05 23:17:21
05/25/05 23:17:21

Actual result:
--------------
05/25/05 23:17:21 05/25/05 23:17:21

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-25 23:31 UTC] jw at jwscripts dot com
Forgot to look on the MSN site; %n isn't supported on the Windows platform...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 11:01:33 2024 UTC