PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
bbuz
New Member
New Member


Joined: May 17, 2006
Posts: 17

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

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 Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15024
Location: Kansas

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

I think if you search the forum you will find the answer Wink
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
bbuz
New Member
New Member


Joined: May 17, 2006
Posts: 17

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

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


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
View user's profile Send private message Visit poster's website
oyjord
Hangin' Around


Joined: Aug 25, 2006
Posts: 44

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

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: 175

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

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
Life Cycles Becoming CPU Cycles


Joined: Jul 18, 2003
Posts: 948

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

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


Joined: Aug 27, 2002
Posts: 15024
Location: Kansas

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

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>';
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
blith
Life Cycles Becoming CPU Cycles


Joined: Jul 18, 2003
Posts: 948

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

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


Joined: Aug 27, 2002
Posts: 15024
Location: Kansas

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

NP. If you get a chance, send a PM or email and let me know where/how you have been Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
jazzfuser
Regular
Regular


Joined: Mar 30, 2006
Posts: 87

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

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
slaytanic_wehrmacht
Regular
Regular


Joined: Dec 01, 2005
Posts: 97
Location: Santiago, Dom. Rep.

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

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...
View user's profile Send private message Visit poster's website
jazzfuser
Regular
Regular


Joined: Mar 30, 2006
Posts: 87

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

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
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum