From a96049c88c891fc8f26809ebf92108a3ad66a044 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 4 Mar 2018 20:01:55 -0800 Subject: [PATCH] Date issue work-around. --- e107_handlers/date_handler.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/e107_handlers/date_handler.php b/e107_handlers/date_handler.php index 313e27577..633030f62 100644 --- a/e107_handlers/date_handler.php +++ b/e107_handlers/date_handler.php @@ -235,7 +235,7 @@ class convert $convert = array( '%Y' => 'yyyy', // jquery-ui docs say 'yy' but yy produces '13' instead of '2013' '%d' => 'dd', - '%e' => 'd', + // '%e' => 'd', '%m' => 'mm', '%B' => 'MM', // Full month name, based on the locale '%A' => 'DD', // A full textual representation of the day @@ -262,7 +262,10 @@ class convert 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) {