PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
Frogger
Worker
Worker


Joined: Oct 06, 2003
Posts: 108

PostPosted: Tue Oct 28, 2003 8:26 pm Reply with quote Back to top

How many files are there that must be changed to reflect EST as my local GMT in 6.9?

Currently my host in in the UK and all times reflect a 5 hour difference even though I have my site and forum preferences set to -5 and en-US.

Each of my stories, new, etc.. are reflected as BST +5 hours.

Guess I should also go ahead and ask the next question. Smile

How do I calculate the proper numeric value to make the change when I do find each entry to change?

Dummy here. Smile
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger ICQ Number
Raven
Site Admin/Owner


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

PostPosted: Tue Oct 28, 2003 9:10 pm Reply with quote Back to top

I have this from my archives. Honestly, I need to know if this works or not. Edit mainfile.php
Code:
function formatTimestamp($time) {
    global $datetime, $locale;
    setlocale (LC_TIME, $locale);
    ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime);
    $datetime = strftime(""._DATESTRING."", mktime(($datetime[4]-15),$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
    $datetime = ucfirst($datetime);
    return($datetime);
}
Note the -15. That is supposedly the offset in hours. If it doesn't work, then I will delete the post.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Frogger
Worker
Worker


Joined: Oct 06, 2003
Posts: 108

PostPosted: Tue Oct 28, 2003 10:18 pm Reply with quote Back to top

Get this error after changing the code.

Code:
Fatal error: Call to a member function on a non-object in /home/WWW/public_html/index.php on line 18
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger ICQ Number
Raven
Site Admin/Owner


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

PostPosted: Tue Oct 28, 2003 10:22 pm Reply with quote Back to top

Er, that's a replacement for the function already in mainfile.php. Did you replace the one already there or just add it?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Frogger
Worker
Worker


Joined: Oct 06, 2003
Posts: 108

PostPosted: Tue Oct 28, 2003 10:34 pm Reply with quote Back to top

Replaced it

.....on icq
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger ICQ Number
Raven
Site Admin/Owner


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

PostPosted: Wed Oct 29, 2003 8:14 am Reply with quote Back to top

I tried the code and it works for me. Obviously, sir, you have done it wrong <MUHAHAHA>. Is it really not working?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Frogger
Worker
Worker


Joined: Oct 06, 2003
Posts: 108

PostPosted: Wed Oct 29, 2003 8:33 am Reply with quote Back to top

I wepraced it, I did, I did, I did...

Will twy again.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger ICQ Number
Frogger
Worker
Worker


Joined: Oct 06, 2003
Posts: 108

PostPosted: Wed Oct 29, 2003 8:53 am Reply with quote Back to top

Had an extra }

It works fine.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger ICQ Number
Raven
Site Admin/Owner


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

PostPosted: Wed Oct 29, 2003 9:02 am Reply with quote Back to top

I knew that Laughing
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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-2011 by Raven

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 Modified by the RavenNuke™ Team ::

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

zerosum