|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53558 PHP manual; strftime: Example #3 is not location aware.
Submitted: 2010-12-16 16:06 UTC Modified: 2010-12-20 03:00 UTC
From: simon at stienen dot name Assigned: kalle
Status: Closed Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID:
 [2010-12-16 16:06 UTC] simon at stienen dot name
From manual page:

A location aware replacement for Example #3:

$format = '%%e%%%e%%'; // Jan 1: results in: '%e%1%' (%%, e, %%, %e, %%)

if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
    $format = preg_replace('#(?<!%)((?:%%)*)%e#', '\1%#d', $format);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-20 03:00 UTC]
Automatic comment from SVN on behalf of kalle
Log: Improved example #3 (%e modifier on Windows) - Patch by simon at stienen dot name (bug #53558)
 [2010-12-20 03:00 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: kalle
 [2010-12-20 03:00 UTC]
This bug has been fixed in SVN. Since the websites are not directly
updated from the SVN server, the fix might need some time to spread
across the globe to all mirror sites, including itself.

Thank you for the report, and for helping us make better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Sat Nov 28 05:01:34 2015 UTC