From: Geoffrey T. D. <da...@us...> - 2001-12-08 16:30:47
|
Update of /cvsroot/phpwiki/phpwiki/lib/plugin In directory usw-pr-cvs1:/tmp/cvs-serv29055/lib/plugin Modified Files: RecentChanges.php Log Message: SF Bug #489544: Change strftime %P to %p. (%P is a GNU extension to the POSIX strftime spec, and is not supported on all systems.) '%p' expands to 'AM' or 'PM' '%P', when supported, expands to 'am' or 'pm' The lowercase version (%P) is much prettier to my eyes, but I guess, in this case the cost of portability is ugliness. (Is it worth some hackage to restore the lower case am/pm?) Index: RecentChanges.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/RecentChanges.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** RecentChanges.php 2001/12/07 22:28:21 1.3 --- RecentChanges.php 2001/12/08 16:30:44 1.4 *************** *** 73,77 **** $created = $rev->get('mtime'); $date = strftime($dateformat, $created); ! $time = strftime("%l:%M %P", $created); // Make configurable. if ($date != $last_date) { if ($lines) { --- 73,77 ---- $created = $rev->get('mtime'); $date = strftime($dateformat, $created); ! $time = strftime("%l:%M %p", $created); // Make configurable. if ($date != $last_date) { if ($lines) { |