网站开发 · 2025年4月26日

Zencart安装出现时区错误解决办法

有时候在安装zen-cart的时候出现时区错误,提示:

ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing.

解决办法:

修改php.ini文件,改为:

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone =”Asia/BeiJing”