CC: Tweaked

CC: Tweaked

57M Downloads

`os.date` tests fail when not in London

SquidDev opened this issue ยท 0 comments

commented

Minecraft Version

1.16.x

Version

470f2b0

Details

We have a couple of tests to ensure that os.date returns consistent results compared with PUC Lua. However, while these tests pass in GMT (UTC+0) and BST (UTC+1), they don't pass for other time zones.

When setting our timezone to across the pond, the %I at 12 AM test fails with Expected "12" but got "02".

Not sure what the best fix is here - can we override the timezone for the duration of the tests?