diff --git a/docs/en/14-reference/05-connector/10-cpp.mdx b/docs/en/14-reference/05-connector/10-cpp.mdx index 7b98695bb0..7e643304c3 100644 --- a/docs/en/14-reference/05-connector/10-cpp.mdx +++ b/docs/en/14-reference/05-connector/10-cpp.mdx @@ -705,8 +705,9 @@ The basic API is used to establish database connections and provide a runtime en - The option of TSDB_OPTION_CONNECTION_CLEAR is used to reset all connection options. - After resetting the time zone and character set, using the operating system settings, the user IP and user app will be reset to empty. - The values of the connection options are all string type, and the maximum value of the user app parameter is 23, which will be truncated if exceeded; Error reported when other parameters are illegal. - - When the time zone parameter is set to empty or illegal, it defaults to UTC. + - If time zone value can not be used to find a time zone file or can not be interpreted as a direct specification, UTC is used, which is the same as the operating system time zone rules. Please refer to the tzset function description for details. You can view the current time zone of the connection by sql:select timezone(). - Time zones and character sets only work on the client side and do not affect related behaviors on the server side. + - The time zone file uses the operating system time zone file and can be updated by oneself. If there is an error when setting the time zone, please check if the time zone file or path (mac:/var/db/timezone/zoneinfo, Linux:/var/share/zoneinfo) is correct. - `char *taos_get_client_info()` - **Interface Description**: Gets client version information. diff --git a/docs/zh/14-reference/05-connector/10-cpp.mdx b/docs/zh/14-reference/05-connector/10-cpp.mdx index 64163dcdca..b434ff98a0 100644 --- a/docs/zh/14-reference/05-connector/10-cpp.mdx +++ b/docs/zh/14-reference/05-connector/10-cpp.mdx @@ -699,10 +699,11 @@ TDengine 客户端驱动的版本号与 TDengine 服务端的版本号是一一 - 该接口只对当前连接有效,不会影响其他连接。 - 同样参数多次调用该接口,以后面的为准,可以作为修改的方法。 - TSDB_OPTION_CONNECTION_CLEAR 选项用于重置所有连接选项。 - - 时区和字符集重置后,使用操作系统的设置,user ip 和 user app 重置后为空。 + - 时区和字符集重置后,使用系统的设置,user ip 和 user app 重置后为空。 - 连接选项的值都是 string 类型,user app 参数值最大为 23,超过该值会被截断;其他参数非法时报错。 - - 时区参数设置为空或非法时,默认为 UTC。 + - 时区配置找不到时区文件或者不能按照规范解释时,默认为 UTC,和操作系统时区规则相同,详见 tzset 函数说明。可通过 select timezone() 查看当前连接的时区。 - 时区和字符集只在 client 侧起作用,对于在服务端的相关行为不起作用。 + - 时区文件使用操作系统时区文件,可以自行更新操作系统时区文件。如果设置时区报错,请检查是否有时区文件或路径(mac:/var/db/timezone/zoneinfo, linux:/usr/share/zoneinfo)是否正确。 - `char *taos_get_client_info()` - **接口说明**:获取客户端版本信息。