1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 05:07:27 +02:00

Date issue work-around.

This commit is contained in:
Cameron
2018-03-04 20:01:55 -08:00
parent 9ff191f6cb
commit a96049c88c

View File

@@ -235,7 +235,7 @@ class convert
$convert = array( $convert = array(
'%Y' => 'yyyy', // jquery-ui docs say 'yy' but yy produces '13' instead of '2013' '%Y' => 'yyyy', // jquery-ui docs say 'yy' but yy produces '13' instead of '2013'
'%d' => 'dd', '%d' => 'dd',
'%e' => 'd', // '%e' => 'd',
'%m' => 'mm', '%m' => 'mm',
'%B' => 'MM', // Full month name, based on the locale '%B' => 'MM', // Full month name, based on the locale
'%A' => 'DD', // A full textual representation of the day '%A' => 'DD', // A full textual representation of the day
@@ -262,7 +262,10 @@ class convert
if(strpos($mask, '%') === FALSE && $legacy == TRUE) if(strpos($mask, '%') === FALSE && $legacy == TRUE)
{ {
return str_replace($r, $s,$mask); $text = str_replace($r, $s,$mask);
$text = str_replace('%d', '^^', $text);
$text = str_replace('d','%e',$text);
return str_replace('^^','%d', $text);
} }
elseif(strpos($mask,'%')!==FALSE) elseif(strpos($mask,'%')!==FALSE)
{ {