Issue Description
date时区显示是UTC,希望显示CST
Analysis
决定时区的有/etc/localtime 和 /etc/timezone
还有TZ宏
可以看到 当date时,会读取TZ这个宏标识以及时间偏移
Solution
添加TZ宏 export TZ=CST-08:00
或者 增加/etc/localtime 其实localtime中也同样有CST-8标识
效果相同
date时区显示是UTC,希望显示CST
决定时区的有/etc/localtime 和 /etc/timezone
还有TZ宏
可以看到 当date时,会读取TZ这个宏标识以及时间偏移
添加TZ宏 export TZ=CST-08:00
或者 增加/etc/localtime 其实localtime中也同样有CST-8标识
效果相同