Browse Source

docs: add tzdata notice on alpine (#2079)

Signed-off-by: xjasonlyu <xjasonlyu@gmail.com>
Jason Lyu 1 year ago
parent
commit
dcc4ded5eb

+ 2 - 0
docs/en_US/configuration/global_configurations.md

@@ -55,6 +55,8 @@ timezone: UTC
 
 The global time zone configuration based on the [IANA time zone database](https://www.iana.org/time-zones), if it is left blank, `UTC` will be used as the default time zone, and if it is set to `Local`, the system time zone will be used.
 
+> Note: To use time zone configuration in an alpine-based environment, you need to ensure that the time zone data has been properly installed (e.g. `apk add tzdata`).
+
 ## Cli Addr
 
 ```yaml

+ 2 - 0
docs/en_US/sqls/functions/transform_functions.md

@@ -30,6 +30,8 @@ convert_tz(col, "Asia/Shanghai")
 
 Convert a time value to a time in the corresponding time zone. The time zone parameter format refers to [IANA Time Zone Database](https://www.iana.org/time-zones), the default value is `UTC`. Set to `Local` to use the system time zone.
 
+> Note: To use this function in an alpine-based environment, you need to ensure that the time zone data has been properly installed (e.g. `apk add tzdata`).
+
 ## ENCODE
 
 ```text

+ 2 - 0
docs/zh_CN/configuration/global_configurations.md

@@ -53,6 +53,8 @@ timezone: UTC
 
 基于 [IANA 时区数据库](https://www.iana.org/time-zones)的全局时区配置,如果留空则使用 `UTC` 作为默认时区,设置为 `Local` 时则使用系统时区。
 
+> 注意:在基于 alpine 的环境里使用时区配置,需要确保已经正确安装(`apk add tzdata`)了时区数据。
+
 ## Cli 地址
 
 ```yaml

+ 2 - 0
docs/zh_CN/sqls/functions/transform_functions.md

@@ -28,6 +28,8 @@ convert_tz(col, "Asia/Shanghai")
 
 将时间数值转换成对应时区的时间。时区参数格式参照 [IANA 时区数据库](https://www.iana.org/time-zones),默认值为 `UTC`,设置为 `Local` 则使用系统时区。
 
+> 注意:在基于 alpine 的环境里使用该函数,需要确保已经正确安装(`apk add tzdata`)了时区数据。
+
 ## CHR
 
 ```text