Many UTF-8 fixes:
[platal.git] / plugins / modifier.date_format.php
index a0b22b0..17469b0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -36,12 +36,13 @@ function smarty_modifier_date_format($string, $format = '%x', $default_date=null
     }
 
     if ( $t != -1 ) {
-        return strftime($f , $t);
+        return utf8_encode(strftime($f , $t));
     } else {
         require_once('Date.php');
         $date = new Date($d);
-        return $date->format($f);
+        return utf8_encode($date->format($f));
     }
 }
 
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>