Posts: 1,648
Threads: 482
Joined: Jun 2010
How do I get another players timezone? Take for instance, I banned a player for two hours, Server is hosted in UK, and they are somewhere with GMT + 1 That means they'll be unbanned in an hour instead of two....How do I get the timestamp of an actual player?
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
No, they won't. gettime() always return the server time.
Posts: 1,648
Threads: 482
Joined: Jun 2010
Ohhh yeahhhhh.... Makes sense. Thank you.
Posts: 1,648
Threads: 482
Joined: Jun 2010
That wouldn't work, I'm afraid. I forgot that gettime only uses the server time, so therefore it's comparing itself and not the players time. Thanks anyway, and thanks to Vince.
Posts: 1,648
Threads: 482
Joined: Jun 2010
It's based off the server time, not the player time, so when a player is banned and logs back in, the timestamp will be the same one in the server, not on the player so if I adjust that per player then it's going to adjust the actual server timestamp.
Posts: 76
Threads: 6
Joined: Oct 2013
Reputation:
0
oh, oh, oh, oh, I see what you meant by the question now. You were wondering if gettime() would return the players time or not. My bad, ignore me.
Posts: 1,648
Threads: 482
Joined: Jun 2010
It was actually my own fault for being dumb and having a bad memory aha!
Gettime always returns the servertime, so no matter where in the world you are, you won't be unbanned until the server time > timestamp.