BUG-14386 Fechas en idioma espaniol en Windows server
Se condiciono setlocale() de acuerdo a la variable PARTNER FLAG
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user