2
0
forked from Wavyzz/dolibarr

Fix: Date output on UTF8 config return value in correct code

This commit is contained in:
Laurent Destailleur
2008-10-26 21:43:51 +00:00
parent 2a021e8b40
commit 0aa9cca4e1
2 changed files with 6 additions and 4 deletions

View File

@@ -493,6 +493,8 @@ function dolibarr_print_date($time,$format='',$to_gmt=false,$convtooutput=true)
// Page code for text from strftime functions
$pagecodefrom='ISO-8859-1';
$localtime=setlocale(LC_TIME,0);
if (eregi('UTF',$localtime)) $pagecodefrom='UTF-8';
return ($convtooutput?$langs->convToOuptutCharset($ret,$pagecodefrom):$ret);
}