Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib-date tests assume local timezone is UTC #47

Open
bmcbarron opened this issue Oct 30, 2017 · 0 comments
Open

lib-date tests assume local timezone is UTC #47

bmcbarron opened this issue Oct 30, 2017 · 0 comments

Comments

@bmcbarron
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant