From 7b907b854d6bcd648aa58fdce6f91a8886fdbbe3 Mon Sep 17 00:00:00 2001 From: caishunfeng Date: Thu, 14 Apr 2022 21:32:00 +0800 Subject: [PATCH] [Improvement][doc] update time zone doc (#9503) * update time zone doc * update time zone doc * update time zone doc --- docs/docs/en/guide/howto/general-setting.md | 14 +++++++++++--- docs/docs/zh/guide/howto/general-setting.md | 14 ++++++++++---- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/docs/docs/en/guide/howto/general-setting.md b/docs/docs/en/guide/howto/general-setting.md index fc2588bba4..00fa912bbe 100644 --- a/docs/docs/en/guide/howto/general-setting.md +++ b/docs/docs/en/guide/howto/general-setting.md @@ -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}`.
+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. + diff --git a/docs/docs/zh/guide/howto/general-setting.md b/docs/docs/zh/guide/howto/general-setting.md index 1b7744b3f9..1533575723 100644 --- a/docs/docs/zh/guide/howto/general-setting.md +++ b/docs/docs/zh/guide/howto/general-setting.md @@ -12,8 +12,14 @@ DolphinScheduler 支持两种类型的内置主题,包括 `Dark` 和 `Light` ## 时区 -DolphinScheduler 支持时区设置。默认时区基于您运行 DolphinScheduler 服务器的时区。如果你想要切换时区,可以点击 [语言](#语言) 按钮右侧的时区按钮, -然后点击 `请选择时区` 进行时区选择。当切换完成后,所有与时间相关的组件都将更改。 +DolphinScheduler 支持时区设置。 + +服务时区 + +使用脚本 `bin/dolphinshceduler_daemon.sh`启动服务, 服务的默认时区为UTC, 可以在`bin/env/dolphinscheduler_env.sh`中进行修改, 如`export SPRING_JACKSON_TIME_ZONE=${SPRING_JACKSON_TIME_ZONE:-Asia/Shanghai}`。
+IDEA 启动服务默认时区为本地时区,可以加jvm参数如`-Duser.timezone=UTC`来修改时区。 时区选择详见[List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) -DolphinScheduler 内部通讯,以及任务主流程中使用 UTC 时间,在界面上显示的时间均是在 UTC 时间基础上进行时区格式化的,意味着当你切换了时区后, -只是将格式化的时间从一个时区切换到另一个时区。 +用户时区 + +用户的默认时区基于您运行 DolphinScheduler 服务的时区。如果你想要切换时区,可以点击 [语言](#语言) 按钮右侧的时区按钮, +然后点击 `请选择时区` 进行时区选择。当切换完成后,所有与时间相关的组件都将更改。