Wrong time in created cases in Bitrix24

Wrong time in created cases in Bitrix24

If you encounter incorrect timestamps in the created cases, you should consistently verify the following settings.

Time zone in the application settings

Check the app.time_zone option in the config file at /etc/itgrix_bx/config.json. Normally, this option is not present, but it can be added if your system's time zone is different from one that you prefer. Any time zone that is recognized by your system is acceptable, for example "+05", "Asia/Almaty", etc.

Time settings on Bitrix24 server (for self-hosted version only)

Skip this step if you have a cloud-based Bitrix24.

If you have a self-hosted version of Bitrix24, connect to the server with Bitrix24 and run the command:

$ date

Check that the time and time zone are correct in the response.

Employee time settings in Bitrix24

Check that the correct time zone is specified in the profile of the user on whose behalf you are viewing cases: User profile > Change personal data > Automatically determine time zone. Ensure that the clock at the top of portal pages shows the correct time.

The same should be checked for the user on whose behalf the application connects to the portal. You can re-authenticate the app from the admin panel to set that user as your currently logged in user.

Time settings on Asterisk server (timestamps in the CEL table)

Run this command on the Asterisk server:

$ date

Check that the time and time zone are correct in the response.

Verify that the timestamps in the CEL table are correct:

$ mysql -u root > USE asteriskcdrdb; > SELECT * FROM cel ORDER BY eventtime DESC LIMIT 1;

Check the value of the eventtime field for the latest entry. If you have active telephony users, the time should be approximately same as the current time.

Last updated