Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: update time-zone.md #876

Merged
merged 6 commits into from
Sep 11, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update time-zone.md
  • Loading branch information
zhexuany authored Sep 11, 2018
commit 139fa89b799b47231df8087fd8ab4a01129bfec0
2 changes: 1 addition & 1 deletion sql/time-zone.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ category: user guide

# 时区支持

TiDB 使用的时区由 `time_zone` 全局变量和 session 变量决定。`time_zone` 的默认值是 `System`,`System` 对应的实际时区在TiDB 集群 bootstrap 初始化时设置。具体逻辑如下:
TiDB 使用的时区由 `time_zone` 全局变量和 session 变量决定。`time_zone` 的默认值是 `System`,`System` 对应的实际时区在 `TiDB` 集群 bootstrap 初始化时设置。具体逻辑如下:
* 优先使用 `TZ` 环境变量
* 如果失败,则从 `/etc/localtime` 的实际软链地址提取。
* 如果上面两种都失败则使用 `UTC` 作为系统时区。
Expand Down