genkgo / camt

PHP Parser for CAMT messages
MIT License
81 stars 67 forks source link

DateTimeImmutable::__construct(): Failed to parse time string (2021-11-30T00:00:00.000000000+01:00) at position 0 (2): The timezone could not be found in the database #115

Open binaryhq opened 2 years ago

binaryhq commented 2 years ago

Hi there,

I'm getting the following error for these datetime

<FrDtTm>2021-11-30T00:00:00.000000000+01:00</FrDtTm>
<ToDtTm>2021-11-30T23:59:59.999999999+01:00</ToDtTm>
DateTimeImmutable::__construct(): Failed to parse time string (2021-11-30T00:00:00.000000000+01:00) at position 0 (2): The timezone could not be found in the database
#0 vendor/genkgo/camt/src/Decoder/Date.php(20): DateTimeImmutable->__construct()
#1 vendor/genkgo/camt/src/Decoder/Message.php(72): Genkgo\Camt\Decoder\Date->decode()
#2 vendor/genkgo/camt/src/Camt053/Decoder/Message.php(38): Genkgo\Camt\Decoder\Message->addCommonRecordInformation()
#3 vendor/genkgo/camt/src/Decoder.php(71): Genkgo\Camt\Camt053\Decoder\Message->addRecords()
#4 vendor/genkgo/camt/src/Reader.php(37): Genkgo\Camt\Decoder->decode()
#5 vendor/genkgo/camt/src/Reader.php(45): Genkgo\Camt\Reader->readDom()
#6 InteralPhpFile.php(35): Genkgo\Camt\Reader->readString()

image