invoiceTimeStamp QRCODE_INVALID

For the past few days we have been getting this warning code, however when we try to validate already reported invoice QR that have received this warning using the latest SDK we are not receiving any similar error.

Example below:
Date & Time on XML Document

<xades:SigningTime>2023-10-09T12:15:35Z</xades:SigningTime>
<cbc:IssueTime>12:15:35</cbc:IssueTime>

DateTime on QR code: 2023-10-09T12:15:35

Screenshot from SDK Validation:

Hi @sotos.h

I would like to try to help you here. According to the documentation if issue time is in local timezone, it should not have any suffix, but if it is in UTC timezone, it should have suffix Z. The same is applied to QR code (probably, not 100% sure).

We are using the format:

<cbc:IssueTime>12:15:35Z</cbc:IssueTime>

and 2023-10-09T12:15:35Z

Could you try the same, as I can see that you reporting times in UTC according to this line:

<xades:SigningTime>2023-10-09T12:15:35Z</xades:SigningTime>

Best regards,
Sergei

2 Likes

Hi @sergei.shishov,

This seems to do the job! Thanks for the suggestion.

We did this and warning was taken care of.
But the now the QR has become non-scannable with the APP. We can scan QR received from ZATCA for B2B, but the B2C QR that we created my making both local time.

Is this an issue with the App?

1 Like

I cannot guarantee, but my assumption it is their incorrect handling of datetime with Z format. They added it in the documentation (with broken XML parsing), then they added it to XML parsing, but the reader is still broken. :grin: