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

[CALCITE-5494] Time zone tests in DateTimeUtilsTest should pass in Europe/London #206

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

freastro
Copy link

The DateTimeUtilsTest.testSqlDateToUnixDateWithCustomCalendar test fails in the Europe/London time zone. The issue is due to the use of TimeZone.setRawOffset(int) which expects the provided value to be the offset from GMT, but the test provides the offset from UTC.

I tested the fix in several time zones and they all passed.

@rubenada rubenada merged commit b57eb7c into apache:main Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants