From c2eaabaa5bc456d08e577e19401e9627a07be9e0 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 18 Mar 2016 15:37:57 +0000 Subject: [PATCH] Fix namespace error --- api/src/DateTime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/DateTime.php b/api/src/DateTime.php index db9b9b38d2..4fba95ef58 100644 --- a/api/src/DateTime.php +++ b/api/src/DateTime.php @@ -177,7 +177,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); }