logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: smarty /libs/plugins modifier.date_format.php: msg#00003

Subject: cvs: smarty /libs/plugins modifier.date_format.php
boots           Wed Jan 10 18:55:58 2007 UTC

  Modified files:              
    /smarty/libs/plugins        modifier.date_format.php 
  Log:
  fix handling of %I with mysql timestamps
  
  Thanks to Danilo Buerger
  
http://cvs.php.net/viewvc.cgi/smarty/libs/plugins/modifier.date_format.php?r1=1.17&r2=1.18&diff_format=u
Index: smarty/libs/plugins/modifier.date_format.php
diff -u smarty/libs/plugins/modifier.date_format.php:1.17 
smarty/libs/plugins/modifier.date_format.php:1.18
--- smarty/libs/plugins/modifier.date_format.php:1.17   Wed Jan 10 18:12:11 2007
+++ smarty/libs/plugins/modifier.date_format.php        Wed Jan 10 18:55:58 2007
@@ -31,7 +31,7 @@
 function smarty_modifier_date_format($string, $format="%b %e, %Y", 
$default_date=null)
 {
     if (substr(PHP_OS,0,3) == 'WIN') {
-        $hours = strftime('%I', smarty_make_time_stamp($string));
+        $hours = strftime('%I', smarty_make_timestamp($string));
         $short_hours = ( $hours < 10 ) ? substr( $hours, -1) : $hours; 
         $_win_from = array ('%e',  '%T',       '%D',        '%l',           
'%R');
         $_win_to   = array ('%#d', '%H:%M:%S', '%m/%d/%y',  $short_hours,   
'%H:%M');

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>