New Year Offer 降价82%
00
11
57
52

How can I modify the PHP timezone setting for my website?

引用:
timezone php php timezone

Your server's Global time configuration cannot be changed, but you can use the PHP function date_default_timezone_set to set the timezone for your website. Here's an example code that sets and checks the currently set timezone:

<?php
date_default_timezone_set("Asia/Bangkok");
echo date_default_timezone_get();
?>

A list of available PHP timezones can be found here: http://www.php.net/manual/en/timezones.php

  • 不限制搭建网站个数
  • 24/7 在线支持
  • 简单易用的建站助手
  • 2倍的WordPress 优化速度
  • 30天退款保证
赶上限时优惠!
低至
8
55
CNH
/月
节省 82%
开始