Ograničeno trajanje - from HRK5,25/mj
06
DANA
00
SATI
24
MINUTA
04
SEKUNDI
Započnite
×

Baza znanja

Pronađite članak o značajkama, provjerite upute,
i ostale tehničke informacije vezane za 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

  • Jednostavni Alat za izradu stranica
  • 99.9% Uptime garancija
  • 24/7 Podrška
  • Powerful Control Panel
  • 30-dnevno Jamstvo povrata novca
Limited Time Special Offer!
Počevši od
HRK
5
25
/mj
Uštedi 90%
Započnite