[pLog-svn] r1911 - plog/branches/plog-1.0.1/class/locale

oscar at devel.plogworld.net oscar at devel.plogworld.net
Thu Apr 28 14:36:58 GMT 2005


Author: oscar
Date: 2005-04-28 14:36:58 +0000 (Thu, 28 Apr 2005)
New Revision: 1911

Modified:
   plog/branches/plog-1.0.1/class/locale/locale.class.php
Log:
according to http://www.php.net/manual/en/function.strftime.php, %a should return a 3-letter abbreviation of the day of the week, and not only 2 as it was doing so far. 


Modified: plog/branches/plog-1.0.1/class/locale/locale.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/locale/locale.class.php	2005-04-28 13:53:45 UTC (rev 1910)
+++ plog/branches/plog-1.0.1/class/locale/locale.class.php	2005-04-28 14:36:58 UTC (rev 1911)
@@ -488,7 +488,7 @@
 				$format = $this->_dateFormat;
 
             // now we can continue normally
-            $values["%a"] = function_exists('html_entity_decode') ? htmlentities(substr(html_entity_decode($weekday), 0, 2 )) : substr($weekday, 0, 2 );
+            $values["%a"] = function_exists('html_entity_decode') ? htmlentities(substr(html_entity_decode($weekday), 0, 3 )) : substr($weekday, 0, 2 );
 			$values["%A"] = $weekday;
 			$values["%b"] = function_exists('html_entity_decode') ? htmlentities(substr(html_entity_decode($monthStr), 0, 3 )) : substr($monthStr, 0, 3);
 			$values["%B"] = $monthStr;




More information about the pLog-svn mailing list