Introduction
In PHP 5, there are some methods to set or get the default timezone. For example, using this code, I set the default timezone used by all date/time functions:
<?php
date_default_timezone_set("Asia/Tehran");
?>
In another example, I set the default timezone for Tokyo:
<?php
date_default_timezone_set("Asia/Tokyo");
?>
There are many lists of timezones in the PHP manual (for more info about date_default_timezone_set
, see here). I just got them into the menu list in HTML.