Hướng dẫn php date_default_timezone_set not working
Ngày đăng:
03/09/2022
Trả lời:
0
Lượt xem:
151
date_default_timezone_set not working. my code:
all of them return the same date "2017-05-26 12:47:08 CST", why? update: I have fixed this problem, the reason is that I used the wrong way to change the timezone on CentOS7:
this way is right on CentOS6, but in CentOS7 /etc/localtime is linked to /usr/share/zoneinfo/Etc/UTC, so I damaged the UTC timezone. the right way to change the timezone on CentOS7 is:
or
so I copied /usr/share/zoneinfo/Etc/UTC from other system to my system to fixed this problem. |