[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-cvs
Subject: [SMARTY-CVS] cvs: smarty / NEWS /libs/plugins modifier.date_format.php
From: "boots" <boots () php ! net>
Date: 2007-01-10 16:25:23
Message-ID: cvsboots1168446323 () cvsserver
[Download RAW message or body]
boots Wed Jan 10 16:25:23 2007 UTC
Modified files:
/smarty NEWS
/smarty/libs/plugins modifier.date_format.php
Log:
Emulate %R in the date_format modifier on Windows
Thanks to Danilo Buerger
http://cvs.php.net/viewvc.cgi/smarty/NEWS?r1=1.545&r2=1.546&diff_format=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.545 smarty/NEWS:1.546
--- smarty/NEWS:1.545 Fri Dec 1 01:09:31 2006
+++ smarty/NEWS Wed Jan 10 16:25:23 2007
@@ -1,3 +1,8 @@
+- emulate %R in the date_format modifier on windows (Danilo Buerger, boots)
+
+Version 2.6.16 (Dec 1st, 2006)
+-------------------------------
+
- fixed replacement bug in trimwhitespace output filter that was introduced
in the last release (Spuerhund, boots)
http://cvs.php.net/viewvc.cgi/smarty/libs/plugins/modifier.date_format.php?r1=1.15&r2=1.16&diff_format=u
Index: smarty/libs/plugins/modifier.date_format.php
diff -u smarty/libs/plugins/modifier.date_format.php:1.15 \
smarty/libs/plugins/modifier.date_format.php:1.16
--- smarty/libs/plugins/modifier.date_format.php:1.15 Tue Jun 20 16:38:36 2006
+++ smarty/libs/plugins/modifier.date_format.php Wed Jan 10 16:25:23 2007
@@ -33,8 +33,8 @@
if (substr(PHP_OS,0,3) == 'WIN') {
$hours = strftime('%I', $string);
$short_hours = ( $hours < 10 ) ? substr( $hours, -1) : $hours;
- $_win_from = array ('%e', '%T', '%D', '%l');
- $_win_to = array ('%#d', '%H:%M:%S', '%m/%d/%y', $short_hours);
+ $_win_from = array ('%e', '%T', '%D', '%l', '%R');
+ $_win_to = array ('%#d', '%H:%M:%S', '%m/%d/%y', $short_hours, \
'%H:%M'); $format = str_replace($_win_from, $_win_to, $format);
}
if($string != '') {
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic