forked from Wavyzz/dolibarr
Fix: Date output on UTF8 config return value in correct code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user