Skip to content

Commit

Permalink
Merge pull request #10 in DEV-MO/shopware5-module from bug/ETS-33-Cla…
Browse files Browse the repository at this point in the history
…ss_not_found_error to release/5.2.1

* commit '7cc059b8a351a2b0bbb493cc680d400a436977e2':
  [ETS-33] Fix Cron Job Fehler - Class Not Found Error
  [ETS-33] Fix Cron Job Fehler - Class Not Found Error
  [ETS-33] Fix Cron Job Fehler - Class Not Found Error
  • Loading branch information
MTroesken committed Aug 16, 2018
2 parents 71b1ceb + 7cc059b commit cb7adb8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Bootstrapping/Events/UpdateTransactionsSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ private function findCandidateOrdersForUpdate($config)
$changeDate = $this->getLastUpdateDate();

if (empty($changeDate)) {
$date = new DateTime();
$date->sub(new DateInterval('PT1H'));
$date = new \DateTime();
$date->sub(new \DateInterval('PT1H'));
$changeDate = $date->format('Y-m-d H:i:s');
}

Expand Down
2 changes: 1 addition & 1 deletion Component/Mapper/ModelFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ private function callConfirmationDeliver($operationData)
$document = $documentModel->findOneBy(array('orderId' => $operationData['orderId'], 'type' => 1));

if (!is_null($document)) {
$dateObject = new DateTime();
$dateObject = new \DateTime();
$currentDate = $dateObject->format("Y-m-d");
$currentTime = $dateObject->format("H:m:s");
$currentDateTime = $currentDate . "T" . $currentTime;
Expand Down
2 changes: 1 addition & 1 deletion Component/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit cb7adb8

Please sign in to comment.