Server time has 2 hour delay
#1

Hey Folks,

I'm making a message when you log back in, wich is gonna say: Welcome back ..., Last online was: and then a date.
Its all working out correclty but the time has a 2 hour delay

The server says its 9:00 but in my country its 11:00.
How can I make the gettime() to get the time from the country the server is located at?

Regards StefanD
Reply
#2

I think gettime() its based on Computers time. If your using VPS try to edit time on it.
Reply
#3

You will have to use an include (or plugin) that gets the location of the player based on the ip. You will then have to find out the timezone of that country and edit the time based on that.
Reply
#4

Well, I was testnig my script localhosted, and the time was 9:00 IG and it was 11:00 IRL.
So how can I edit that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)