Перейти к содержимому

Zabbix. Где исправить timezone (Часовой пояс)

Мучался я с часовым поясом. Время в графиках убегало в перед на 5 часов. Выставил везде UTC

В этих файлах прописал date.timezone = "Etc/GMT"
nano /etc/php/7.0/apache2/php.ini
nano /etc/php/7.0/cli/php.ini

В /etc/apache2/conf-enabled/zabbix.conf за коментировал строки

#php_value date.timezone Asia/Yekaterinburg
#php_value date.timezone Asia/Yekaterinburg

В системе прописал

root@zabbix:/home/appliance# date
Thu Oct  3 09:49:07 GMT 2019

Как проверить время в php. Самый мой затык был имеенно в неём

root@zabbix:/home/appliance# php -a
Interactive mode enabled

php > echo date("d.m.Y H:i:s T", time());
03.10.2019 09:50:07 GMT

Как проверить в mysql

root@zabbix:/home/appliance# mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 241
Server version: 5.7.27-0ubuntu0.16.04.1 (Ubuntu)

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SELECT CURTIME();
+-----------+
| CURTIME() |
+-----------+
| 09:50:38  |
+-----------+
1 row in set (0.00 sec)

mysql>

Время у меня щас везде одинаковое.

 

Similar Posts:

Метки:

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *