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

Fix: Warning message fixed for datetime insertions without any timezone #1320

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion weaviate/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def deprecated_tenant_type(old: str, new: str) -> None:
@staticmethod
def datetime_insertion_with_no_specified_timezone(date: datetime) -> None:
warnings.warn(
message=f"""Con002: You are inserting the datetime object {date} without a timezone. The timezone will be set to UTC.
message=f"""Con002: You are using the datetime object {date} 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
""",
Expand Down
Loading