In order to get timezones working on a MariaDB/MySQL instance, you will have to initialize Timezones data and grant GLPI database user read ACL on their table.
Enabling timezone support on your MySQL instance may affect other database in the same instance; be carefull!
Non windows users¶
On most systems, you’ll have to initialize timezones data from your system’s timezones:
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -p -u root mysql
You may want to check MariaDB documentation about mysql_tzinfo_to_sql and your system documentation do know where data are stored (if not in
Do not forget to restart the database server once command is successfull.
Windows does not provide timezones informations, you’ll have to download and intialize data yourself.
Be carefull not to give your GLPI database user too large access. System tables should never grant access to app users.
In order to list possible timezones, your GLPI database user must have read access on
Assuming your user is
glpi@localhost, you should run something like:
GRANT SELECT ON `mysql`.`time_zone_name` TO 'glpi'@'localhost'; FLUSH PRIVILEGES;