Skip to content

ClickHouseDateValueParser parse LocalDateTime with wrong Time Zone #623

@fernee

Description

@fernee

in the method ru.yandex.clickhouse.response.parser.ClickHouseDateValueParser#dateTimeToLocalDateTime, when columnInfo.getTimeZone() is not utc, the code below will change the time zone to utc, so we got a wrong LocalDateTime instance. what's the purpose of the code below?

https://github.com/ClickHouse/clickhouse-jdbc/blob/549a62f180fbc21d30a6a0dbfed376013669d2f9/clickhouse-jdbc/src/main/java/ru/yandex/clickhouse/response/parser/ClickHouseDateValueParser.java#L44-L54

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions