As of today, DKB sends balance without a date in C:123,45:EUR format.
So make $datum nullable.
Change Sdo.php:
/** JJJJMMTT gemäß ISO 8601 */
public string $datum;
to:
/** JJJJMMTT gemäß ISO 8601; some banks omit this field */
public ?string $datum = null;
Since getTimestamp() currently assumes a date exists, also change it from:
public function getTimestamp(): \DateTime
{
return \DateTime::createFromFormat(
'Ymd His',
$this->datum . ' ' . ($this->uhrzeit ?? '000000')
);
}
to:
public function getTimestamp(): ?\DateTime
{
if ($this->datum === null || $this->datum === '') {
return null;
}
$timestamp = \DateTime::createFromFormat(
'Ymd His',
$this->datum . ' ' . ($this->uhrzeit ?? '000000')
);
return $timestamp ?: null;
}
As of today, DKB sends balance without a date in C:123,45:EUR format.
So make $datum nullable.
Change Sdo.php:
to:
Since getTimestamp() currently assumes a date exists, also change it from:
to: