Timezone-aware datetime
query parameters are internally cast to a wrong timezone
#377
Labels
bug
Something isn't working
Describe the bug
Timezone-aware
datetime
query parameters are internally cast to a wrong timezone.Steps to reproduce
Client
with default parameters:It should have converted UTC+3 to UTC-5 and get
2024-07-23 04:00:00
.Where it happens
As we can see in the debugger, the function
clickhouse_connect.driver.query.py:format_query_value
is casting the parameter to UTC:The
format_query_value()
was called fromfinalize_query()
:For some reason,
server_tz
wasn't passed toformat_query_value()
andpytz.UTC
default value was used.Configuration
Environment
ClickHouse server
The text was updated successfully, but these errors were encountered: