SA-MP Forums Archive
Server time has 2 hour delay - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server time has 2 hour delay (/showthread.php?tid=435502)



Server time has 2 hour delay - Stefand - 07.05.2013

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


Re: Server time has 2 hour delay - ]Rafaellos[ - 07.05.2013

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


Re: Server time has 2 hour delay - FUNExtreme - 07.05.2013

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.


Re: Server time has 2 hour delay - Stefand - 07.05.2013

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?