-
Notifications
You must be signed in to change notification settings - Fork 31
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
Inserting aware Datetime returns an error. #626
Comments
MarkRatFelt
changed the title
Inserting Datetime aware returns an error.
Inserting aware Datetime returns an error.
Jul 16, 2020
It'd work converting it to a string via thanks, @autophagy :) |
Related to crate/sqlalchemy-cratedb#92 |
2 tasks
This was referenced Jun 21, 2023
3 tasks
Hi there, apologies for the late reply. insert_basic.py#L43-L44 demonstrates that this problem has been resolved by one of the recent releases. The driver now accepts inserting both timezone-aware and naive Python datetime objects. With kind regards, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to insert some DateTime data to CrateDB, but I'm getting an error.
The
datetime
I'm trying to insert looks so:The column is a
Timestamp with time zone
column.But I get this error:
But the
CrateJsonEncoder
(self.epoch
) is naive:tzinfo is None
So... it won't work. Either I make my datetime naive, or the
self.epoch
gotta be aware.The text was updated successfully, but these errors were encountered: