BUG-14386 Fechas en idioma espaniol en Windows server

Se condiciono setlocale() de acuerdo a la variable PARTNER FLAG
This commit is contained in:
norahmollo
2014-04-01 11:45:54 -04:00
parent e908f02967
commit 3ef4c6e9fe

View File

@@ -596,9 +596,14 @@ class Configurations // extends Configuration
break;
}
}
setlocale(LC_TIME, $langLocate);
$dateTime = utf8_encode(strftime($newCreation, mktime($h, $i, $s, $m, $d, $y)));
if (defined('PARTNER_FLAG')) {
setlocale(LC_TIME, $langLocate);
$dateTime = utf8_encode(strftime($newCreation, mktime($h, $i, $s, $m, $d, $y)));
} else {
setlocale(LC_TIME, $langLocate . ".utf8");
$dateTime = strftime($newCreation, mktime($h, $i, $s, $m, $d, $y));
}
if (strpos($dateTime, ' ') !== false) {
$dateTime = ucwords($dateTime);