- 论坛徽章:
- 84
|
man timezone
FILES
/etc/localtime
The system timezone file.
/usr/share/zoneinfo/
The system timezone database directory.
/usr/share/zoneinfo/posixrules
When a TZ string includes a dst timezone without anything following it, then this file is used for the start/end rules. It is in the tzfile(5)
format. By default, the zoneinfo Makefile hard links it to the America/New_York tzfile.
Above are the current standard file locations, but they are configurable when glibc is compiled.
系统启动后,解析你App的配置文件,取出 TZ 类型: 然后找 /usr/share/zoneinfo 下对应的文件替换 /etc/localtime |
|