GuppY Help Center, help online, documentation and tutorials

 
Search
 
Close
GuppY 5.02

telecharger.png

logo_nuxit_guppy.png
You are here :   Welcome » How to set my website to right time zone if my server is abroad.
 
Preview  Print...  Print this page...
Preview  Print...  Print this section...
FAQ GuppY <= 4.6.xx

In this menu you will find all the FAQs on earlier versions of GuppY.

 ↑  
FAQ GuppY v 5.01.xx

Here you will find FAQs on Guppy version 5.01.xx.

 ↑  
FAQ system

These FAQs address issues related to hosting and the system in general.

Documentation

In this box you will find documentation and tutorials

 ↑  
Legal

Here you will find important information regarding regulations and copyright

 ↑  
rss This article is available in the standard RSS format for publication on your website :
https://ghc.freeguppy.org/data/en-articles.xml

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
Category : - Webhosting services issues
Page read 9953 times

You are here :   Welcome » How to set my website to right time zone if my server is abroad.
 
Preview  Print...  Print this page...
Preview  Print...  Print this section...
Visits

 1508498 visitors

 136 visitors online

Webmaster - Infos
Help

aide_help.png
On each page in admin, if you click on this icon, you get the online help page.

Site registered in the CNIL under agrément 1040387.
You have a right of access, modification, rectification and deletion
of the data according to the Computer law and Freedom (article 34) of January 6th, 1978.

 

The FreeGuppY.org hosting is provided by Nuxit.com our partner