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

Importing Timezone Info? #554

Open
michaeligreenberg opened this issue Jul 2, 2024 · 0 comments
Open

Importing Timezone Info? #554

michaeligreenberg opened this issue Jul 2, 2024 · 0 comments

Comments

@michaeligreenberg
Copy link

Context

I am using pytest-mysql to unit test queries to MariaDB. One of the queries uses the convert_tz function to shift a DateTime from one timezone to another. MySQL / MariaDB rely on metadata about timezones to perform this operation. The metadata is often loaded using the mysql_tzinfo_to_sql tool and the system's zoneinfo dataset. The output of that tool is meant to be piped into the mysql command-line interface.

Question

Is there a way that I can use the mysql CLI to access a pytest-mysql instance? Is there any other known way to import timezone metadata into a pytest-mysql instance?

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