TimestampToDate returns an extra day - 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: TimestampToDate returns an extra day (
/showthread.php?tid=636395)
TimestampToDate returns an extra day -
Riwerry - 26.06.2017
Hello, I have downloaded TimestampToDate include but it seems, like it's returning an extra day. I've also tried it on locale server with same result. Time returned by gettime() is fine when I checked it through online converter.
That's the include
https://sampforum.blast.hk/showthread.php?tid=347605
Re: TimestampToDate returns an extra day -
Vince - 26.06.2017
Well, the first reaction in that thread is a list of things that were wrong with it at the time. Who knows if they've been addressed. If you happen to use MySQL then you can use the builtin FROM_UNIXTIME function.