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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
33 + 11 = ?
Subscribe to this entry?

 
 [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: Sat May 18 17:01:33 2024 UTC