Browse Source

Fix date things.

pull/17/head
James Cole 4 years ago
parent
commit
543de38c36
  1. 4
      app/Services/Nordigen/Conversion/Routine/TransactionProcessor.php
  2. 4
      app/Services/Spectre/Conversion/Routine/TransactionProcessor.php

4
app/Services/Nordigen/Conversion/Routine/TransactionProcessor.php

@ -101,7 +101,7 @@ class TransactionProcessor
foreach ($transactions as $transaction) {
$madeOn = $transaction->getDate();
if (null !== $this->notBefore && $madeOn->lte($this->notBefore)) {
if (null !== $this->notBefore && $madeOn->lt($this->notBefore)) {
app('log')->info(
sprintf(
'Skip transaction because "%s" is before "%s".',
@ -111,7 +111,7 @@ class TransactionProcessor
);
continue;
}
if (null !== $this->notAfter && $madeOn->gte($this->notAfter)) {
if (null !== $this->notAfter && $madeOn->gt($this->notAfter)) {
app('log')->info(
sprintf(
'Skip transaction because "%s" is after "%s".',

4
app/Services/Spectre/Conversion/Routine/TransactionProcessor.php

@ -127,7 +127,7 @@ class TransactionProcessor
foreach ($transactions as $transaction) {
$madeOn = $transaction->madeOn;
if (null !== $this->notBefore && $madeOn->lte($this->notBefore)) {
if (null !== $this->notBefore && $madeOn->lt($this->notBefore)) {
app('log')->info(
sprintf(
'Skip transaction because "%s" is before "%s".',
@ -137,7 +137,7 @@ class TransactionProcessor
);
continue;
}
if (null !== $this->notAfter && $madeOn->gte($this->notAfter)) {
if (null !== $this->notAfter && $madeOn->gt($this->notAfter)) {
app('log')->info(
sprintf(
'Skip transaction because "%s" is after "%s".',

Loading…
Cancel
Save