cvs: smarty /libs/plugins modifier.date_format.php

From: Date: Wed, 10 Jan 2007 18:55:58 +0000
Subject: cvs: smarty /libs/plugins modifier.date_format.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-2194@lists.php.net to get a copy of this message
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');

« previous php.smarty.cvs (#2194) next »