logo

Cyber Rasprodaja

  •  99,9% Dostupnosti
  •  Besplatni SSL Certifikat
  •  24/7 Podrška
  •  30-Dana Jamstva Povrata Novca
Krenite

Do

90

%

OFF

04
DANA
06
SATI
31
MINUTA
49
SEKUNDI
Cyber Rasprodaja: Web Hosting
Počevši od 5,25kn /Mjesec!
Pogledajte Sve Ponude
×

Baza znanja

Pronađite članak o značajkama, provjerite upute,
i ostale tehničke informacije vezane za hosting usluge Hostingera.

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

Modificirano dana:
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