DateTime handling - DarkWanderer/ClickHouse.Client GitHub Wiki
ClickHouse.Client tries to correctly handle timezones and DateTime.Kind property. Specifically:
DateTimevalues are returned as UTC. User can then convert them themselves or useToLocalTime()method onDateTimeinstance- When inserting,
DateTimevalues are handled in following way:UTCDateTimes are inserted 'as is', because ClickHouse stores them in UTC internallyLocalDateTimes are converted to UTC according to user's local timezone settingsUnspecifiedDateTimes are considered to be in target column's timezone, and hence are converted to UTC according to that timezone
- For columns without DateTime specified, client timezone is used by default (legacy behavior).
UseServerTimezoneflag in connection string can be used to use server timezone