Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MT940.php #202

Merged
merged 2 commits into from
Jan 10, 2020
Merged

Update MT940.php #202

merged 2 commits into from
Jan 10, 2020

Conversation

Magellanth
Copy link
Contributor

Bugfix on booking date parser

Bugfix on booking date parser
@Philipp91
Copy link
Contributor

We should have a unit test for this.

// try to guess the correct year of the booking date

$valutaDateTime = new \DateTime($valutaDate);
$bookingDateTime = new \DateTime($this->getDate($year . substr($transaction, 6, 4)));
Copy link
Contributor

@ampaze ampaze Jan 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ich würde noch

$bookingDate = substr($transaction, 6, 4);

wieder einführen, substr($transaction, 6, 4) kommt mehrfach vor.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ja da hast du Recht, ich habe es jetzt $bookingDatePart genannt weil $bookingDate ja schon in anderer Bedeutung verwendet wird.

@nemiah nemiah merged commit 65f07cf into nemiah:master Jan 10, 2020
@Magellanth Magellanth deleted the patch-1 branch January 10, 2020 09:45
@ampaze ampaze mentioned this pull request Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants