ERiC2014-11-21 02:10:36
ERiC, 2014-11-21 02:10:36

After transferring the time in zabbix-php-frontend, the time is shown incorrectly, where to edit?

after the time change (and in Kamchatka, the time remained the same GMT + 12), the data in zabbix-frontend began to lag behind by 2 hours.
Ubuntu 12.04 Precise, zabbix 2.0.13 from repo.zabbix.com. PHP 5.3.10-1ubuntu3.14, tzdata 2014i-0ubuntu0.12.04 updated before 10/26/2014.
when I saw a problem in the frontend in the system, the time was correct:

# hwclock --show; date;date -u
Thu. Oct 30 2014 09:00:57 -0.614706 seconds
Thu. oct. 30 09:00:56 PETT 2014
Wed. oct. 29 21:00:56 UTC 2014

found an indication of php.ini it was empty there.
corrected in the date.timezone column
# cat /etc/php5/apache2/php.ini | grep timezone
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Kamchatka

pecl install timezonedb
echo "extension=timezonedb.so" > /etc/php5/conf.d/timezonedb.ini

restarted apache2, zabbix-server, mysql - did not help.
updated zabbix to 2.2.6-1+precise (the database crashed when updating; restored), restarted the entire machine, the time remained the same - 2 hours behind.
Are there any tips I missed?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
ERiC, 2015-08-02

Updating the version of the server OS, I decided that it was time to fix the problem.
the problem was in date.timezone in the file in /etc/apache2/conf-enabled/zabbix.conf
which I never looked at.

Rsa97, 2014-11-21

Update timezone information in mysql

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql

Eugene, 2014-11-21

It is best to update the system time on the server and everything will fall into place.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question