invoices always have the expiry field set to the delta seconds of their expiration since their creation date, which is also in the invoices.

some decoders will add one to the other to get the absolute expiration datetime though.

paste it on https://bolt11.org/ for more detail.

Reply to this note

Please Login to reply.

Discussion

I decoded the invoice both with lightning-cli and bolt-11 and they both output the unix timestamp.

My understanding, based on https://github.com/lightning/bolts/blob/master/11-payment-encoding.md#tagged-fields, is that the x field is supposed to be set to the time in seconds. Or am I misunderstanding this?

#[3] did not have this problem with LND and Zeus

Nope, it works as expected with Zeus backed by LND.