You are not logged in.
Hi,
I am posting a solution which was given to me by Siteground webhosting support :
1° Add the timezone in the php.ini of your site :
date.timezone = "Europe/Amsterdam"
2° Add to the .htaccess the following(replacing what needs to be replaced of course) :
SetEnv PHPRC /path to your php.ini file/
The main differences with other solutions is that if you modify the .htaccess with this line, then all elements in subfolders of your site will know where to get the timezone from.
I hope it helps people who had the same issue as me which is only the tickets using the wrong timezone when the rest of glpi used the correct time.
Support GLPI with a donation : opencollective.com/glpi-project
Offline
I apologize for bringing up an old topic, but I had this exactly problem today.
I was upgrading GLPI from 10.0.7 to 10.0.8, and also upgrading PHP from 8.1 to 8.2.
After I was finished updating all, I have noticed that my tickets don't have correct time while everything else in GLPI has correct time.
This was solution for me, but I only had to do "Step 1" from your answer:
1. Go to /etc/php/8.2/apache2/php.ini
2. Find variable date.timezone =
3. Uncomment it and enter your timezone
4. Restart Apache2
You can find correct timezone here: https://www.php.net/manual/en/timezones.php
Offline