You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2019-12-15 18:41:12

random389
Member
Registered: 2019-12-14
Posts: 29

Wrong time only with tickets and not other glpi features

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

#2 2023-07-07 14:38:17

oneill2john
Member
Registered: 2022-05-07
Posts: 58

Re: Wrong time only with tickets and not other glpi features

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

Board footer

Powered by FluxBB