[Improvement][doc] update time zone doc (#9503)

* update time zone doc

* update time zone doc

* update time zone doc
This commit is contained in:
caishunfeng 2022-04-14 21:32:00 +08:00 committed by GitHub
parent 8a2fbd205e
commit 7b907b854d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 7 deletions

View File

@ -14,9 +14,17 @@ of to [language](#language) control button.
## Time Zone
DolphinScheduler support time zone setting. The build-in time zone is based on the server you run DolphinScheduler. You could
DolphinScheduler support time zone setting.
Server Time Zone
The default time zone is UTC when using `bin/dolphinshceduler_daemon.sh` to start the server, you could update `SPRING_JACKSON_TIME_ZONE` in `bin/env/dolphinscheduler_env.sh`, such as `export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-Asia/Shanghai}`.<br>
If you start server in IDEA, the default time zone is your local time zone, you could add the JVM parameter to update server time zone, such as `-Duser.timezone=UTC`. Time zone list refer to [List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
User Time zone
The user's default time zone is based on the time zone which you run the DolphinScheduler service.You could
click the button on the right of the [language](#language) button and then click `Choose timeZone` to choose the time zone
you want to switch. All time related components will adjust their time zone according to the time zone setting you select.
DolphinScheduler uses UTC time for the internal communication, the time zone you choose only changes the display time format
base on the UTC time. When you choose time zone `TIME ZONE`, we just convert the UTC time to the zone you prefer.

View File

@ -12,8 +12,14 @@ DolphinScheduler 支持两种类型的内置主题,包括 `Dark` 和 `Light`
## 时区
DolphinScheduler 支持时区设置。默认时区基于您运行 DolphinScheduler 服务器的时区。如果你想要切换时区,可以点击 [语言](#语言) 按钮右侧的时区按钮,
然后点击 `请选择时区` 进行时区选择。当切换完成后,所有与时间相关的组件都将更改。
DolphinScheduler 支持时区设置。
DolphinScheduler 内部通讯,以及任务主流程中使用 UTC 时间,在界面上显示的时间均是在 UTC 时间基础上进行时区格式化的,意味着当你切换了时区后,
只是将格式化的时间从一个时区切换到另一个时区。
服务时区
使用脚本 `bin/dolphinshceduler_daemon.sh`启动服务, 服务的默认时区为UTC 可以在`bin/env/dolphinscheduler_env.sh`中进行修改, 如`export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-Asia/Shanghai}`。<br>
IDEA 启动服务默认时区为本地时区可以加jvm参数如`-Duser.timezone=UTC`来修改时区。 时区选择详见[List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
用户时区
用户的默认时区基于您运行 DolphinScheduler 服务的时区。如果你想要切换时区,可以点击 [语言](#语言) 按钮右侧的时区按钮,
然后点击 `请选择时区` 进行时区选择。当切换完成后,所有与时间相关的组件都将更改。