Jump to content

Problem with WHMCS Cron Report Timing


Recommended Posts

  • WHMCS Technical Analyst II

Hello @jacksony

You can check this by navigating to Setup > Automation settings  and looking at the "Last Run" time value in the green box , then compare it with the time in the right corner of the admin UI. They should match or be within 5 minutes of each other (assuming your cron is executed every 5 minutes).

We have some cron specific documentation at the bottom of this page that may also help: https://docs.whmcs.com/Changing_Timezone

My personal recommendation would be to specify a date.timezone value in the cron command itself. The reason for this is then you can be absolutely sure it's executing under the correct timezone, and it saves having to investigate any difference between the timezone your php-cli is using vs what is set for this in the PHP configuration applied to web pages like WHMCS. Below is an example of running the cron.php script under the Europe/London timezone:

php -d "date.timezone=Europe/London" -q /path/to/crons/cron.php

I hope this helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated