BOARDS

planetluc.com discussion board

all about the planetlu.com scripts

You are not logged in.

Announcement

I had to clean the boards due to massive spam. Actually i deleted everything /-one after 1st Oct 2008. It was the only way to get this spam out of the boards. So i'm sorry for all serious users who registered/posted meanwhile.

#1 14-12-2007 13:28:36

jorge
New member
Registered: 14-12-2007
Posts: 5

Time

Hi!

I want to have local time shown... I live in Sweden.

How do you do that?

Offline

 

#2 14-12-2007 17:31:20

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: Time

Where is the webserver located?


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#3 14-12-2007 19:29:39

jorge
New member
Registered: 14-12-2007
Posts: 5

Re: Time

I don´t know exactly I´ve got the site on x10Hosting... free hosting provider.... american site I guess.

Offline

 

#4 14-12-2007 21:15:50

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: Time

okay, it does look like it's in the US.  Anyway, I thought of a quick and dirty way to solve this where it doesn't matter.

Here's what you will need to do.  Open signme.inc.php and find the following line:

$datelang = "de_DE";

after the line, add:

$datelang = "de_DE";
$timeoffset = +1;  //timezone offset from GMT

then find the following lines:

if (isloggedin())
     $replace = [. . .] , strftime($dateformat, $post['time']), [. . .] ;
else
     $replace = [. . .] , strftime($dateformat, $post['time']), [. . .] ;

(please note that the "[. . .]" above represents more code)

and change to:

if (isloggedin())
     $replace = [. . .] , gmstrftime($dateformat, $post['time']
+ ($timeoffset*60*60)), [. . .] ;
else
     $replace = [. . .] , gmstrftime($dateformat, $post['time']
+ ($timeoffset*60*60)), [. . .] ;

That should do it (but keep it all on the same line, the layout of the forum puts it on two lines).  Let me know if you run into any problems.


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#5 17-12-2007 13:28:55

jorge
New member
Registered: 14-12-2007
Posts: 5

Re: Time

its working just fine... thanks a lot for the help!!!

Offline

 

#6 26-01-2010 11:35:49

biancastratfords
New member
Registered: 21-01-2010
Posts: 2

Re: Time

Thank you for info,its working.Great job.


[url=http://www.sonicloans.net/]Payday loans[/url] , [url=http://www.sonicgates.net/]Bad credit loans[/url] and [url=http://www.flyingloans.com/]Personal loans[/url]

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

 
 
© 2003-2010 by planetluc.com · Bachtelstrasse 104 · CH-8400 Winterthur | Support | Login |