diff --git a/Bootstrapping/Events/UpdateTransactionsSubscriber.php b/Bootstrapping/Events/UpdateTransactionsSubscriber.php index bbc5fb92..16f02b58 100644 --- a/Bootstrapping/Events/UpdateTransactionsSubscriber.php +++ b/Bootstrapping/Events/UpdateTransactionsSubscriber.php @@ -79,7 +79,7 @@ private function findCandidateOrdersForUpdate($config) if (empty($changeDate)) { $date = new \DateTime(); - $date->sub(new DateInterval('PT1H')); + $date->sub(new \DateInterval('PT1H')); $changeDate = $date->format('Y-m-d H:i:s'); } diff --git a/Component/Validation.php b/Component/Validation.php index 2c9f6f16..22226b41 100755 --- a/Component/Validation.php +++ b/Component/Validation.php @@ -111,7 +111,7 @@ public function isRatePAYPayment() */ public function isAgeValid() { - $today = new DateTime("now"); + $today = new \DateTime("now"); $birthday = $this->_user->getBirthday(); if (empty($birthday) || is_null($birthday)) {