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
 [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 13:01:30 2024 UTC