Time ban system, time issue

So I’m attempting to make a time ban admin system. However I ran into a problem where the time registering the unban is incorrect.
In studio (Expected output)
Capture11
In game (Unexpected output

For some reason there is a major 4 hour and 1 day difference. I ran these tests around at the same time with the same amount of ban time.

I use os.date("*t",os.time()+(time)).(datemeasurement) in order to print out the date when the user will be unbanned.

3 Likes

Are you getting the os time from the client? The server time can be different on the client.

2 Likes

I’m using it on the server. Is that an issue?