How to Solve the Time Synchronization Problem on Vicidial
When the timezone is set differently on the server, in the Vicidial database and in PHP, you will receive the following error:
To resolve this, set the same timezone for the server, the Vicidial database and PHP.
Make changes to the timezone settings if needed, and make sure the server and PHP are configured with the same timezone.
Fix the Time Synchronization Problem
Check the server timezone
Output:
Check the PHP timezone
Check the date.timezone setting in /etc/php7/apache2/php.ini:
Output:
Compare the server, PHP and database times
If the issue persists after you have made the changes above, run the following command. It compares the time values in the server, PHP and the Vicidial database:
Output:
Run the update script
To resolve the issue, run the following script:
Output:
The pattern match timed-out at /usr/share/astguiclient/AST_update.pl line 470 error occurs when the response from the Asterisk server does not match the regex pattern. If you see it, continue with the next step. If the script finishes without that error, skip to the last step.
Fix the pattern match timeout (only if you see the error)
Open /usr/share/astguiclient/AST_update.pl and find this line:
Replace it with:
or:
Re-run the script and verify
After making the change, run /usr/share/astguiclient/AST_update.pl again. Then confirm the fix by running the comparison command once more:
Output:

