digitick / php-sepa-xml

* THIS PROJECT IS NO LONGER MAINTAINED* SEPA file generator in PHP
107 stars 63 forks source link

Why adding \Z in BaseDomBuilder.php : getCreationDateTime()->format ? #25

Open julienferment opened 10 years ago

julienferment commented 10 years ago

Hello, very nice work ! But just a question : in BaseDomBuilder.php , line 93, you are using datetime->format() with a \Z at the end. Why ? This \Z appears in my XML and it's not accepted by our bank. Where am I wrong ?

Thank you

Julien

BorislavSabev commented 10 years ago

Yup, definately a bug here. It is strange that the Z is escaped. Could someone reiterate on this? @julienferment if you remove the backward brackets ('\') from infront of the T and Z it should be fine.

So instead of 2014-01-09T18:27:16Z 2014-01-09EET18:27:167200

My timezone (T): Eastern European Time (UTC+2), (GTM+2) My timezone offset in secs. (Z): 7200 seconds

I just saw this on my system also, but it is strange that my banks do not validate this. Is there a legit reason for this?