1
0
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:
Cameron
2020-01-19 12:35:02 -08:00
parent 1d2add821e
commit 0b26a97217
2 changed files with 5 additions and 2 deletions

View File

@@ -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