Luau Recap: June 2020

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:
image

With timezone set to UTC-8 I get:
image

Even with the example on the wiki:

London:
image

UTC-8:
image

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)

1 Like