Warning: include(../plugins/glossaire/conf_defaut2.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 29
Warning: include(): Failed opening '../plugins/glossaire/conf_defaut2.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 29
Warning: Undefined variable $res_group in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 33
Warning: Trying to access array offset on value of type null in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 33
Warning: include(../plugins/glossaire/gloss_inc1.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 36
Warning: include(): Failed opening '../plugins/glossaire/gloss_inc1.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 36
Warning: include(../plugins/glossaire/gloss_mob_inc2.inc): Failed to open stream: No such file or directory in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 37
Warning: include(): Failed opening '../plugins/glossaire/gloss_mob_inc2.inc' for inclusion (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /home/freeguppyorg/sites/ghc.freeguppy.org/mobile/inc/inchead/glossaire_mob.inc on line 37
How to set my website to right time zone if my server is abroad.
Open the file inc/functions.php.
Search for the following code lines :
function GetCurrentDateTime() {
$dateout = date("YmdHi");
return $dateout;
}
For version V4.6.12, it's somewhere about line 558.
Then replace those lines with the following code:
function GetCurrentDateTime() {
$hourdiff = "0";
$timeadjust = ($hourdiff * 60 * 60);
$dateout = date("YmdHi",time() + $timeadjust);
return $dateout;
}
$hourdiff is the time between your web server time and the time of the country you live.
You need to use the sign + or - plus hours between the web server time and your country time.
Like this : hourdiff = "+9"
In PHP 5
Line 84 of file inc / includes.inc initializes the reference time zone. By default, it initializes GuppY at the time of Paris.
date_default_timezone_set('Europe/Paris');
So just replace "Europe / Paris" by the correct time zone e.g. "America / Montreal" to find such http://www.php.net/manual/en/timezones.php
Note: this FAQ is obsolete since version 4.6.18 which allows changing timezone from admin.
Creation date : 15/02/2005 @ 18:49
Last update : 15/02/2005 @ 18:49
Category : Webhosting services issues
Page read 16465 times
Document generated in 0.02 second