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

Make sure that tests use a predictable time zone. #497

Merged

Conversation

dgeelen-uipath
Copy link
Contributor

This makes sure that all tests always use the UTC time zone when constructing a DateTime. This doesn't change the existing tests, but it allows us to reject all 'unpredictable' times in our custom (downstream) Snowflake compiler.

This is an example of a change which is needed only for our custom compiler, but which we wouldn't want to keep in a local change on our repository for maintainability reasons. I.e. keeping this as a commit local to our downstream branch would be a constant source of potential merge conflicts, so we would like to upstream this. We'd like to use this as opportunity to discuss how to best handle such changes.

@ahmad-moussawi ahmad-moussawi merged commit 0f0698b into sqlkata:master Jun 23, 2021
@ahmad-moussawi
Copy link
Contributor

I am curious to know more about your case, maybe it's beneficial for other cases as well.

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

Successfully merging this pull request may close these issues.

None yet

2 participants