From: <jjo...@us...> - 2003-07-27 16:13:20
|
Update of /cvsroot/tikiwiki/tiki/Smarty/plugins In directory sc8-pr-cvs1:/tmp/cvs-serv22821/Smarty/plugins Modified Files: Tag: release_eta_carinea_rc1 modifier.tiki_date_format.php Log Message: Using Date() for date formatting (strftime wasn't translating correctly) Index: modifier.tiki_date_format.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/Smarty/plugins/modifier.tiki_date_format.php,v retrieving revision 1.2.6.1 retrieving revision 1.2.6.2 diff -u -d -r1.2.6.1 -r1.2.6.2 --- modifier.tiki_date_format.php 26 Jul 2003 20:54:10 -0000 1.2.6.1 +++ modifier.tiki_date_format.php 27 Jul 2003 16:13:17 -0000 1.2.6.2 @@ -21,7 +21,11 @@ if ($dc->getTzName() != "UTC") $format = preg_replace("/ ?%Z/","",$format); else $format = preg_replace("/%Z/","UTC",$format); - return strftime($format, $disptime); + // strftime doesn't do translations right + //return strftime($format, $disptime); + + $date = new Date($disptime); + return $date->format($format); } /* vim: set expandtab: */ |