Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
Frogger
Worker
Worker



Joined: Oct 06, 2003
Posts: 108

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

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

_________________
Only registered users can see links on this board! Get registered or login! 
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: 17088

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

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
Frogger







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

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
 
Raven







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

Er, that's a replacement for the function already in mainfile.php. Did you replace the one already there or just add it?
 
Frogger







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

Replaced it

.....on icq
 
Raven







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

I tried the code and it works for me. Obviously, sir, you have done it wrong <MUHAHAHA>. Is it really not working?
 
Frogger







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

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

Will twy again.
 
Frogger







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

Had an extra }

It works fine.
 
Raven







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

I knew that Laughing
 
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.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

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 ©