mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Removed useless STRPTIME_COMPAT constant
This commit is contained in:
@@ -789,7 +789,7 @@ class e_date
|
||||
*/
|
||||
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) );
|
||||
|
@@ -30,13 +30,10 @@ if (!defined('e107_INIT'))
|
||||
|
||||
if (!function_exists('strptime'))
|
||||
{
|
||||
|
||||
define('STRPTIME_COMPAT', true);
|
||||
function strptime($str, $format)
|
||||
{
|
||||
return e107::getDate()->strptime($str,$format);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//PHP < 5.2 compatibility
|
||||
|
Reference in New Issue
Block a user