Skip to content
This repository
Browse code

fix encoding in mini calendar

  • Loading branch information...
commit e2c813979d615329afe9a09b01a4e1100ce457e8 1 parent 50540ce
gRey authored February 28, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/PEAR/Date/Calc.php
2  lib/PEAR/Date/Calc.php
@@ -1542,7 +1542,7 @@ function getWeekdayAbbrname($day="",$month="",$year="",$length=3)
1542 1542
             $month = Date_Calc::dateNow("%m");
1543 1543
         if(empty($day))
1544 1544
             $day = Date_Calc::dateNow("%d");
1545  
-        return substr(Date_Calc::getWeekdayFullname($day,$month,$year),0,$length);
  1545
+        return mb_substr(Date_Calc::getWeekdayFullname($day,$month,$year),0,$length);
1546 1546
     } // end func getWeekdayFullname
1547 1547
 
1548 1548
     /**

0 notes on commit e2c8139

Please sign in to comment.
Something went wrong with that request. Please try again.