Doc #53558 [Opn->Csd]: PHP manual; strftime: Example #3 is not location aware.

From: Date: Mon, 20 Dec 2010 02:00:47 +0000
Subject: Doc #53558 [Opn->Csd]: PHP manual; strftime: Example #3 is not location aware.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5702@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53558&edit=1 ID: 53558 Updated by: kalle@php.net Reported by: simon at stienen dot name Summary: PHP manual; strftime: Example #3 is not location aware. -Status: Open +Status: Closed Type: Documentation Problem Package: Website problem PHP Version: Irrelevant -Assigned To: +Assigned To: kalle Block user comment: N Private report: N New Comment: 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 PHP.net itself. Thank you for the report, and for helping us make PHP.net better. Previous Comments: ------------------------------------------------------------------------ [2010-12-20 03:00:42] kalle@php.net Automatic comment from SVN on behalf of kalle Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=306482 Log: Improved example #3 (%e modifier on Windows) - Patch by simon at stienen dot name (bug #53558) ------------------------------------------------------------------------ [2010-12-16 16:06:28] simon at stienen dot name Description: ------------ --- From manual page: http://www.php.net/function.strftime#Examples --- A location aware replacement for Example #3: <?php $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); } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53558&edit=1

« previous php.doc.bugs (#5702) next »