os.date() returns local time according to your system locale. You are probably in timezone UTC+1 for hour to start with 1.
In function 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'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.