We no longer support PHP 5.1, assume that DateTime is available

This commit is contained in:
Andrew Ruthven 2023-02-06 19:42:36 +13:00
parent 43996a3297
commit 8444347b02
2 changed files with 0 additions and 4 deletions

View File

@ -9,8 +9,6 @@
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2 or later
*/
if ( !class_exists('DateTime') ) return;
/**
* Try and extract something like "Pacific/Auckland" or "America/Indiana/Indianapolis" if possible, given
* the VTIMEZONE component that is passed in. This is much more complex than olson_from_tzstring since

View File

@ -86,8 +86,6 @@ switch( $xmltree->GetNSTag() ) {
function check_for_expansion( $calendar_data_node ) {
global $need_expansion, $expand_range_start, $expand_range_end, $expand_as_floating;
if ( !class_exists('DateTime') ) return; /** We don't support expansion on PHP5.1 */
$expansion = $calendar_data_node->GetElements('urn:ietf:params:xml:ns:caldav:expand');
if ( isset($expansion[0]) ) {
$need_expansion = true;