I don’t think os.time() is working properly when passing a table date input into it.
https://www.lua.org/pil/22.1.html
Running
print(os.time{year=1970, month=1, day=1, hour=0})
With timezone set to London I get:
With timezone set to UTC-8 I get:
Even with the example on the wiki:
London:
UTC-8:
I think this has broken a scheduling feature on my game. I was using r = os.date("*t", timestamp)
and os.time({r.year, r.month, ...})
to get the UTC timestamp of the local adjusted time of another UTC timestamp.
(This is in studio on Windows 10)