kamalkpaleti Posted February 11, 2019 Share Posted February 11, 2019 Hi I have set my server time zone to my time. In whmcs admin it is showing the correct time but it's showing different time and the cron job is running at different time. Please check the screenshot attached. Some one please help me to resolve this issue. Thanks in advance. - Kamal 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted February 12, 2019 Share Posted February 12, 2019 Cron is running every 5 minutes. Last Run will say the time that cron runned by script on server. For example, I got Cron Status says Last Run: 12/02/2019 04:50 but I have set the Scheduling Time of the Day at 5:00 am (of the server), to adjust with the time I want to run. At WHMCS I got the correct local time (no server). At cPanel I've set to run every 5 mins and thats it. 0 Quote Link to comment Share on other sites More sharing options...
kamalkpaleti Posted February 12, 2019 Author Share Posted February 12, 2019 @pRieStaKos Thanks for your reply. Actually I have set both the server time and whmcs time to my time zone. Even though the daily automated action is not running at my required time. I have set the the daily automated actions at 8am. But it's performing the action at 1:30pm (5.30hrs later) Could you suggest a resolution for this? 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted February 13, 2019 Share Posted February 13, 2019 I saw from the beginning of the transfer to my new that the time is set to host local time. So I tried to set it by php.ini to my local time (Europe/Athens), but i checked that it was not working for cron jobs. So I calculate the hours to set it to run at 12:00 of my local time, 05:00 am server time. And it's fine for me. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 13, 2019 Share Posted February 13, 2019 On 11/02/2019 at 13:46, kamalkpaleti said: Some one please help me to resolve this issue. you can set the time zone in the WHMCS configuration file and that might resolve the discrepancy. 1 Quote Link to comment Share on other sites More sharing options...
kamalkpaleti Posted February 13, 2019 Author Share Posted February 13, 2019 @brian! Thank you so much, It worked. I have already done the same thing ( date.timezone = "Asia/Kolkata" ) in php.ini but why it didn't work? date_default_timezone_set('Asia/Kolkata'); worked. Thanks again! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.