os.date()
returns local time according to your system locale. You are probably in timezone UTC+1 for hour to start with 1.os.date()
you can specify to use UTC by using prefix !
before your %X
like this !%X
. Try this:starttime = os.time()
while true do
print(os.date('!%X', os.time() - starttime))
wait(0.1)
end
Thank you so much ! It actually fixed my problem. I love you <3os.date()
returns local time according to your system locale. You are probably in timezone UTC+1 for hour to start with 1.
In functionos.date()
you can specify to use UTC by using prefix!
before your%X
like this!%X
. Try this:
Lua:starttime = os.time() while true do print(os.date('!%X', os.time() - starttime)) wait(0.1) end