From a7dc722c319c7894b0d07b98307670515361fc71 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 18 Oct 2011 06:34:44 +1300 Subject: [PATCH] Drat! timezone_identifiers_list() is only PHP5.2 onwards :-( Those poor CentOS folk. --- inc/AWLUtilities.php.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/AWLUtilities.php.in b/inc/AWLUtilities.php.in index 1167773..e8fe22a 100644 --- a/inc/AWLUtilities.php.in +++ b/inc/AWLUtilities.php.in @@ -551,7 +551,7 @@ if ( !function_exists("force_utf8") ) { function olson_from_tzstring( $tzstring ) { global $c; - if ( in_array($tzstring,timezone_identifiers_list()) ) return $tzstring; + if ( function_exists('timezone_identifiers_list') && in_array($tzstring,timezone_identifiers_list()) ) return $tzstring; if ( preg_match( '{((Antarctica|America|Africa|Atlantic|Asia|Australia|Indian|Europe|Pacific)/(([^/]+)/)?[^/]+)$}', $tzstring, $matches ) ) { // dbg_error_log( 'INFO', 'Found timezone "%s" from string "%s"', $matches[1], $tzstring ); return $matches[1]; -- 2.11.4.GIT