lib-date.lua does a full test of os.date using multiple timestamps, exercising both "local" and "utc" versions of the format string. When the test is run in non-UTC timezones, many of the tests fail.
One alternative would be to adjust the input timestamp by local timezone's utc-offset, before passing it to the local format tests.