- biubiu2018-03-08论坛元老118785
最近发现wordpress上时间是错的
仔细核对了下,是按洛杉矶时间增加8小时来显示时间(小鸡在洛杉矶附近)
百度了几种修改WP时间方法,好像都不行
然后直接修改系统时间,但是似乎不太对劲,这是我刚修改的,难道是DO这边问题?
- - Please select one of the following time zone regions.
- 1) Beijing Time
- 2) Xinjiang Time
- #? 1
- - The following information has been given:
- - China
- Beijing Time
- - Therefore TZ='Asia/Shanghai' will be used.
- Local time is now: Thu Mar 8 06:22:03 CST 2018.
- Universal Time is now: Wed Mar 7 22:22:03 UTC 2018.
- Is the above information OK?
- 1) Yes
- 2) No
- #? 1
- - You can make this change permanent for yourself by appending the line
- TZ='Asia/Shanghai'; export TZ
- to the file '.profile' in your home directory; then log out and log in again.
- - Here is that TZ value again, this time on standard output so that you
- can use the /usr/bin/tzselect command in shell scripts:
- Asia/Shanghai
- [root[@DigitalOcean](home.php?mod=space&uid=20881) ~]# date -R
- Thu, 08 Mar 2018 06:22:38 +0800
- [root@digitalocean ~]# date -R
- Thu, 08 Mar 2018 06:24:02 +0800
- 复制代码