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

Update warning message for datetime use without timezone when querying #1265

Open
databyjp opened this issue Aug 28, 2024 · 0 comments
Open
Labels

Comments

@databyjp
Copy link
Contributor

Queries show the same datetime warning as insertion, which can be confusing at first

Con002: You are inserting the datetime object 2017-01-01 00:00:00 without a timezone. The timezone will be set to UTC.
            To use a different timezone, specify it in the datetime object. For example:
            datetime.datetime(2021, 1, 1, 0, 0, 0, tzinfo=datetime.timezone(-datetime.timedelta(hours=2))).isoformat() = 2021-01-01T00:00:00-02:00

Proposal: could update inserting to using so it applies to both insertions & queries

@databyjp databyjp assigned databyjp and unassigned databyjp Aug 28, 2024
@databyjp databyjp added good first issue Good for newcomers usability labels Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant