Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues
Author Message
bbuz
New Member
New Member



Joined: May 17, 2006
Posts: 17

PostPosted: Wed Mar 05, 2008 1:11 pm Reply with quote

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
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Mar 05, 2008 3:25 pm Reply with quote

I think if you search the forum you will find the answer Wink
 
View user's profile Send private message
bbuz







PostPosted: Wed Mar 05, 2008 5:15 pm Reply with quote

Part of the answer is here:
[ Only registered users can see links on this board! Get registered or login! ]

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 Rolling Eyes
 
oyjord
Hangin' Around



Joined: Aug 25, 2006
Posts: 44

PostPosted: Fri Apr 18, 2008 9:48 am Reply with quote

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!
 
View user's profile Send private message
emmaphp
Worker
Worker



Joined: Aug 22, 2006
Posts: 192

PostPosted: Mon Apr 28, 2008 5:33 pm Reply with quote

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 -Cool
 
View user's profile Send private message
blith
Client



Joined: Jul 18, 2003
Posts: 977

PostPosted: Tue Jul 01, 2008 9:03 am Reply with quote

It is adjusted in Your Account/My Info
 
View user's profile Send private message Visit poster's website
Raven







PostPosted: Tue Jul 01, 2008 9:45 am Reply with quote

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







PostPosted: Wed Jul 02, 2008 7:56 am Reply with quote

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... Smile
 
Raven







PostPosted: Wed Jul 02, 2008 6:18 pm Reply with quote

NP. If you get a chance, send a PM or email and let me know where/how you have been Smile
 
jazzfuser
Worker
Worker



Joined: Mar 30, 2006
Posts: 111

PostPosted: Sat Jul 19, 2008 5:41 am Reply with quote

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
 
View user's profile Send private message
jestrella
Moderator



Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic

PostPosted: Sat Jul 19, 2008 7:55 am Reply with quote

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 [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
jazzfuser







PostPosted: Sat Jul 19, 2008 8:00 am Reply with quote

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
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©