mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Revert "Removed useless STRPTIME_COMPAT constant"
This reverts commit ce510159a9
.
Added check for 'tm_hour' key.
This commit is contained in:
@@ -30,10 +30,13 @@ 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