更新时间:2023-02-03 17:51:13
date()
和 localtime()
都使用服务器的本地时区,除非被覆盖;您可以覆盖与 date_default_timezone_set()
一起使用的时区.
date()
and localtime()
both use the local timezone for the server unless overridden; you can override the timezone used with date_default_timezone_set()
.
http://www.php.net/手册/en/function.date-default-timezone-set.php