Black Friday Sale 90% OFF
12
DAGEN
22
UREN
42
MINUTEN
35
SECONDEN

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

Bijgewerkt op:
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

  • Onbeperkt Aantal Websites
  • 24/7 Live Support
  • Gemakkelijke Websitebouwer
  • 2X Snellere WordPress
  • 30 Dagen Geld Terug Garantie
Black Friday Sale
Vanaf
0
80
/ma
Bespaar 90%
Begin nu