Gossamer Forum
Quote Reply
Edit time
My local time is different to the time on my server. What do I have to edit in the links.cfg to display the correct time.
thanx
Thomas
Quote Reply
Re: Edit time In reply to
Well, that would be a little complicated. Links uses Time::Local, which is the a local module on the server. If you are referring to your "local" PC, you will have to synchronize your time with your server time.

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Edit time In reply to
open db_utils.pl and go to sub get_time

change the line:

my ($sec, $min, $hour, @junk) = localtime ($time);

to read:

my ($sec, $min, $hour, @junk) = localtime ($time + 28800);

28800 is the number of seconds in 8 hours (60 seconds times 60 minutes times 8 hours). I don't really know if that works, but that's what I read in a thread a while back.

[This message has been edited by lordmouse (edited December 13, 1999).]
Quote Reply
Re: Edit time In reply to
hi austria & lordmouse,

yes it works.
because i have it in use.
server is in america, and myself in austria Wink

------------------
ciao
Nicky
mse.nicky.net
www.nicky.net/forum german forum for GT Links

Quote Reply
Re: Edit time In reply to
Sorry, I think I asked the wrong way.
The Serverlocation is America, my Homepage is in Germany.
I want to know, what I have to edit that the servertime is displayed +8 hours.
Thomas

[This message has been edited by austria (edited December 13, 1999).]
Quote Reply
Re: Edit time In reply to
[ I'm just getting Links2 up and running so this is my first post here. ]

When I just tried this on my server, which is 3hrs behind (10800 secs) and did a rebuild, the time was correct but the day was off.

From your experience, is this a one time deal because I made the change when I (on the east coast) was on the 21st while my server (on the west coast) was still on the 20th or can I expect the date to be wrong 3 hours every day?

TIA