Support Issue / PDF Generation

Hello,

I verified the timezone is correct. It sent the reoccurring invoice 24 hours early.

@david do you have any suggestions?

I’m not sure how a 403 is even possible if using hosted_ninja for the pdf generator.

@david I believe the 403 was caused by using an old version of the macOS app which wasn’t including the API token to download the PDF.

The current question is why the recurring invoice was sent 24 hours early.

This is the template for testing Recurring Invoice send times:


Record your timezone - US/Eastern


Record your send time that is configured - 9am


Start a new recurring invoice - 1st April 2024

image
In the database, open the recurring_invoices table, find the recurring_invoice and inspect the value of next send date this is the UTC time that the invoice will fire. 1st April 13:00:00


Inspect what the UTC time equivalent is for your timezone, here, 1pm UTC = 9am US/Eastern.

If you can reproduce a scenario that does not return the correct UTC next_send_date the most likely explanation is your server time / PHP timezone is not set to +0 UTC.

If you can provide a sequence (as described above) showing a send time that is incorrect, please let us know here the variables and we’ll write the tests required to check.

1 Like