diff --git a/e107_handlers/date_handler.php b/e107_handlers/date_handler.php index 24b0ac522d..df0615bb28 100644 --- a/e107_handlers/date_handler.php +++ b/e107_handlers/date_handler.php @@ -789,7 +789,7 @@ function computeLapse($older_date, $newer_date = FALSE, $mode = FALSE, $show_sec */ public function strptime($str, $format) { - if(STRPTIME_COMPAT !== TRUE && function_exists('strptime')) // Unix Only. + if(function_exists('strptime')) // Unix Only. { $vals = strptime($str,$format); // PHP5 is more accurate than below. $vals['tm_amon'] = strftime('%b', mktime(0,0,0, $vals['tm_mon'] +1) ); diff --git a/e107_handlers/php_compatibility_handler.php b/e107_handlers/php_compatibility_handler.php index e26abfe773..4605398c08 100644 --- a/e107_handlers/php_compatibility_handler.php +++ b/e107_handlers/php_compatibility_handler.php @@ -30,13 +30,10 @@ if (!function_exists('strptime')) { - - define('STRPTIME_COMPAT', true); function strptime($str, $format) { return e107::getDate()->strptime($str,$format); } - } //PHP < 5.2 compatibility