mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-23 17:26:02 +00:00
We no longer support PHP 5.1, assume that DateTime is available
This commit is contained in:
parent
43996a3297
commit
8444347b02
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user