DiouxX / docker-glpi

Project to deploy GLPI with docker
222 stars 185 forks source link

timezone #43

Open ahmaddxb opened 2 years ago

ahmaddxb commented 2 years ago

I am having issues with timezone. Any ideas

image

ahmaddxb commented 2 years ago

I was using MariaDB and this it what I did to get it working.

Command into mariadb container and run

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

mysql -u root -p

GRANT SELECT ON mysql.time_zone_name TO 'glpi'@'localhost'; FLUSH PRIVILEGES;

restart mariadb container

command into glpi container and run

/var/www/html/glpi/bin/console glpi:migration:timestamps

restart gli container

uebmaster commented 1 year ago

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

I got command not found :/