Author |
Message |
bbuz
New Member


Joined: May 17, 2006
Posts: 17
|
Posted:
Wed Mar 05, 2008 1:11 pm |
|
I know this is an old question.
How do i change my server time zone for news, my server is MST (GMT -7) and i need to change this.
I have already updated the timezone in Forums and my account.
how do i hack the mainfile.php for this?(RN2.20.00).
Thanks |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Wed Mar 05, 2008 3:25 pm |
|
I think if you search the forum you will find the answer  |
|
|
|
 |
bbuz

|
Posted:
Wed Mar 05, 2008 5:15 pm |
|
Part of the answer is here:
http://www.ravenphpscripts.com/postt12021.html
This fixed the news date to match my local time.
Now i am searching how to change the Site Info v2.2.2 © Server Date/Time block to match my local time....
---
changing values (3600) in block-User_Info.php file changes the displayed gmt time zone (its a start)
Code:$sdt = date('j F Y'."\n".'H:i:s T');
//$zone = date('Z')/3600;
$zone = date('Z')/28800;
if ($zone >= 0) {
$zone = '+'.$zone;
|
---
but now im tryng to change the server hour because it remains wrong  |
|
|
|
 |
oyjord
Hangin' Around

Joined: Aug 25, 2006
Posts: 44
|
Posted:
Fri Apr 18, 2008 9:48 am |
|
I'd like to know the answer to this as well for the "Server Date/Time" field in Site Info v..2.2.2.
Thanks! |
|
|
|
 |
emmaphp
Worker


Joined: Aug 22, 2006
Posts: 192
|
Posted:
Mon Apr 28, 2008 5:33 pm |
|
I'd like to know the answer to this as well.
How do you change the Time (Zone) displayed in the Site Info v..2.2.2 Block?
My User Info block currently reads:
Server Date/Time
29 April 2008 12:00:00 GMT (GMT +0)
When (as an example) I want it to read:
Server Date/Time
29 April 2008 04:00:00 GMT (GMT - |
|
|
|
 |
blith
Client

Joined: Jul 18, 2003
Posts: 977
|
Posted:
Tue Jul 01, 2008 9:03 am |
|
It is adjusted in Your Account/My Info |
|
|
|
 |
Raven

|
Posted:
Tue Jul 01, 2008 9:45 am |
|
Blith wrote: | It is adjusted in Your Account/My Info |
Actually the block uses its own code. It is designed to reflect the SERVER date and time. Towards the bottom of the block code you will see this code. That is where you will need to make your adjustments.
Code: $sdt = date('j F Y'."\n".'H:i:s T');
$zone = date('Z')/3600;
if ($zone >= 0) {
$zone = '+'.$zone;
}
$content .= '<center>'._SERDT.'<br />'.$sdt.' (GMT '.$zone.')</center>';
|
|
|
|
|
 |
blith

|
Posted:
Wed Jul 02, 2008 7:56 am |
|
Raven wrote: | Blith wrote: | It is adjusted in Your Account/My Info |
Actually the block uses its own code. It is designed to reflect the SERVER date and time. Towards the bottom of the block code you will see this code. That is where you will need to make your adjustments.
|
Sorry Raven! Thanks for the correction. I am glad to see/read you again...  |
|
|
|
 |
Raven

|
Posted:
Wed Jul 02, 2008 6:18 pm |
|
NP. If you get a chance, send a PM or email and let me know where/how you have been  |
|
|
|
 |
jazzfuser
Worker


Joined: Mar 30, 2006
Posts: 111
|
Posted:
Sat Jul 19, 2008 5:41 am |
|
Regarding the Site Info block; Could someone, please, offer a sample of what should be changed in the following if you want your server to reflect a - 2 hours? (I'm PST, server is CDT). I think I have to add something like - 7200, but I'm not sure exactly where.
$sdt = date('j F Y'."\n".'H:i:s T');
$zone = date('Z')/3600;
if ($zone >= 0) {
$zone = '+'.$zone;
}
$content .= '<center>'._SERDT.'<br />'.$sdt.' (GMT '.$zone.')</center>';
Thank you |
|
|
|
 |
jestrella
Moderator

Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic
|
Posted:
Sat Jul 19, 2008 7:55 am |
|
i think there should be a global option in nuke preferences to set the timezone of the whole site, just as in phpbb an others. this is a must have feature... |
_________________ "For those whom have not reach the sky... Every mountain seems high"
Best Regards
Jonathan Estrella
http://about.me/jestrella04 |
|
|
 |
jazzfuser

|
Posted:
Sat Jul 19, 2008 8:00 am |
|
Right, that has already been set, and yet Site Info still shows the CDT time zone, two hours ahead of my local time.
I have followed all the instructions and my news postings are showing the proper time stamp - it's just Site Info that I need to sync.
Thanks |
|
|
|
 |
|