i have a script that gives player a perk for 24hours. sometimes it doesn't work because the request is taking too long and returning nil i think. i made some prints at key points throughout my script and sometimes it returns to me the print for "timed out" which means it's not getting the time. i have tested this and it works if it returns the time, but it's not always returning the time. i'm using
game:GetService("HttpService"):GetAsync("http://www.timeapi.org/utc/now?%25Q", true)
to record the time and then using it again later to check the time. i'm not sending a bunch of requests. it only makes the request once during purchase, and once when player either enters the game or resets their character. like i said it all works fine except i think like today there was alot of traffic on the internet and it was just not receiving the request.
so, is there a way for my to get the time on/from the game server?

1 comment
Why not os.time() function. You can get the current time stamp and add (606024) --60 seconds, 60 minutes, 24 hours. Since is.time goes by seconds. You do not need a external http location for time stamp unless you want the actual date.