New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

New Backup cron_newbackup.php logs in different timezone

Started by krishna2vinayak, June 09, 2023, 07:12:17 AM

Previous topic - Next topic

krishna2vinayak

I noticed that the new backup cron /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php logs are not following server time or php time but logs in a different timezone.

I tried setting timezone in /usr/local/cwp/php71/php.ini which matches the server time as well mysql time but still see /var/log/cwp/cron_backup.log logging with different timezone

2023-06-08 14:45:01 Backup Initiated
2023-06-08 19:17:55 Backup Finished

15 0 * * * /usr/local/cwp/php71/bin/php -d max_execution_time=100000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php

cron job was scheduled on 12.15pm but logs shows 14:45. Did anyone face such issues?