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 2010-11-29 21:47:16

elijust
Member
Registered: 2010-11-16
Posts: 1

GLPI 0.78.1 - Different time zone between server and client.

Currently I have my application GLPI hosted on a server located outside Argentina. The problem this creates is that the php.ini file has a different time zone that the user of the system, so the tickets and monitoring are built with the wrong time.
There any way to correct the time zone using GLPI, without resorting to the configuration of PHP or MySQL, or the hour of the server? These settings can not be changed, since there are other users around the world, sharing the server.
Please appreciate the quick response. GLPI I put into production soon.

Many thanks. Eliseo from Buenos Aires, Argentina.

App Info:

Operating Systems : Linux server5.dns-grupohost.com 2.6.18-194.11.3.el5.CVE_2010_3081 #1 SMP Mon Sep 20 09:07:17 EDT 2010
    x86_64
PHP 5.2.9 (PDO, Reflection, SPL, SQLite, SimpleXML, Zend Optimizer, apache2handler, bcmath, calendar, ctype, curl, date, dom,
    filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mime_magic, mysql, mysqli, openssl,
    pcre, pdo_mysql, pdo_sqlite, posix, session, soap, sockets, standard, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip,
    zlib)
Setup: memory_limit="64M" max_execution_time="30" safe_mode="" session.save_handler="files"
Software: Apache ()
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7
MySQL: 5.0.91-community (powercon@localhost/powercon_glpi)

Offline

#2 2011-05-30 09:43:55

Diamond
Member
Registered: 2010-11-30
Posts: 20

Re: GLPI 0.78.1 - Different time zone between server and client.

Up here.

I have the same situation like elijust. I want to edit the timezone of glpi, but I cannot touch php.ini file.
Can anybody help us?

GLPI info:
GLPI: 0.78.5
OS: linux
php 5.2.6-1
mysql 5.0.51a-24


GLPI 0.8 on PHP 5.2.6-1+lenny6, apache 2.2.9

Offline

#3 2011-05-31 15:59:04

bwm367
Member
From: Maine, United States
Registered: 2009-01-06
Posts: 217
Website

Re: GLPI 0.78.1 - Different time zone between server and client.

In Setup>General and the "General Setup" tab, there is a timezone option. (I'm running 72.3 still, but I can't imagine it's changed that much.)


My Configuration: GLPI .72.3 running on XAMPP from a VMware Virtual Machine (Windows XP). PHP 5.2, Apache 2.2.3...

Offline

#4 2011-06-01 03:02:59

Diamond
Member
Registered: 2010-11-30
Posts: 20

Re: GLPI 0.78.1 - Different time zone between server and client.

bwm367 wrote:

In Setup>General and the "General Setup" tab, there is a timezone option. (I'm running 72.3 still, but I can't imagine it's changed that much.)

No, it doesn't there in 0.78.5 and 0.80

Last edited by Diamond (2011-06-02 04:37:46)


GLPI 0.8 on PHP 5.2.6-1+lenny6, apache 2.2.9

Offline

#5 2011-06-08 04:44:30

Diamond
Member
Registered: 2010-11-30
Posts: 20

Re: GLPI 0.78.1 - Different time zone between server and client.

Hello all,

Can you help me?


GLPI 0.8 on PHP 5.2.6-1+lenny6, apache 2.2.9

Offline

#6 2011-06-17 10:37:13

Diamond
Member
Registered: 2010-11-30
Posts: 20

Re: GLPI 0.78.1 - Different time zone between server and client.

Hello,

Can anyone reply please?


GLPI 0.8 on PHP 5.2.6-1+lenny6, apache 2.2.9

Offline

#7 2011-07-21 05:18:19

Diamond
Member
Registered: 2010-11-30
Posts: 20

Re: GLPI 0.78.1 - Different time zone between server and client.

UP, anyone please comment


GLPI 0.8 on PHP 5.2.6-1+lenny6, apache 2.2.9

Offline

#8 2011-07-21 07:48:04

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: GLPI 0.78.1 - Different time zone between server and client.

Simply define the time in a .htaccess ini the glpi folder...


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#9 2011-07-26 04:47:00

Diamond
Member
Registered: 2010-11-30
Posts: 20

Re: GLPI 0.78.1 - Different time zone between server and client.

remi wrote:

Simply define the time in a .htaccess ini the glpi folder...

Thanks for your reply. I will check it  smile


GLPI 0.8 on PHP 5.2.6-1+lenny6, apache 2.2.9

Offline

#10 2011-07-26 05:10:05

Diamond
Member
Registered: 2010-11-30
Posts: 20

Re: GLPI 0.78.1 - Different time zone between server and client.

Hmm, it doesn't work on my site.
I added to .htaccess in root folder of glpi

SetEnv TZ Timezonelocation

With Timezonelocation is my timezone.
http://us2.php.net/manual/en/timezones.php

But in Maintenance/log and Historical nothing change. It still display the same as before I add that field to .htaccess file.

Last edited by Diamond (2011-07-26 05:10:56)


GLPI 0.8 on PHP 5.2.6-1+lenny6, apache 2.2.9

Offline

#11 2011-07-26 06:18:03

Diamond
Member
Registered: 2010-11-30
Posts: 20

Re: GLPI 0.78.1 - Different time zone between server and client.

Hmm,

Solved by add this string to .htaccess file on root

php_value date.timezone America/Chicago

Thanks remi for advice.


GLPI 0.8 on PHP 5.2.6-1+lenny6, apache 2.2.9

Offline

#12 2011-09-19 09:20:17

infomate
Member
Registered: 2011-06-16
Posts: 37

Re: GLPI 0.78.1 - Different time zone between server and client.

The solution above also did the trick for me.

the file .htaccess was accessible but write protected (I cannot save my corrections), so I renamed it to .htaccessold and created a new .htaccess file with following content.


<Files helpdesk.html>
ForceType text/html;charset=utf-8
</Files>

php_value date.timezone Asia/Manila

# If you have problem with session.auto_start on install you need to set this value to 0 on php.ini or uncomment this line
#php_value session.auto_start 0

I was just wondering about the file sizes
.htaccessold (the original file) - 220KB
.htaccess  (new file)  - 0 KB

Offline

Board footer

Powered by FluxBB