Ofertă de Anul Nou 82% REDUCERE
00
ZILE
19
ORE
56
MINUTE
53
SECUNDE

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

Modificat la:
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

  • Sitebuilder ușor de folosit
  • 99.9% uptime garantat
  • 24/7 asistenţă live
  • Powerful Control Panel
  • 30 de zile banii înapoi garantat
Profită de oferta limitată!
De la
1
05
/lună
Economiseşte 82%
Începe