diff --git a/api/src/DateTime.php b/api/src/DateTime.php index 4fba95ef58..bd57bc9078 100644 --- a/api/src/DateTime.php +++ b/api/src/DateTime.php @@ -14,6 +14,7 @@ namespace EGroupware\Api; // we do not have an own implementation/extensions use DateTimeZone; +use DateInterval; /** * EGroupware time and timezone handling class extending PHP's DateTime @@ -177,7 +178,7 @@ class DateTime extends \DateTime */ public function add($interval) { - if (is_string($interval)) $interval = \DateInterval::createFromDateString($interval); + if (is_string($interval)) $interval = DateInterval::createFromDateString($interval); parent::add($interval); }