Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InferSystemTZ ¶
func InferSystemTZ() string
InferSystemTZ reads system timezone from `TZ`, the path of the soft link of `/etc/localtime`. If both of them are failed, system timezone will be set to `UTC`. It is exported because we need to use it during bootstap stage. And it should be only used at that stage.
func LoadLocation ¶
LoadLocation loads time.Location by IANA timezone time.
func SetSystemTZ ¶
func SetSystemTZ(name string)
SetSystemTZ sets systemTZ by the value loaded from mysql.tidb.
func SystemLocation ¶
SystemLocation returns time.SystemLocation's IANA timezone location. It is TiDB's global timezone location.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.