Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 7 of 7
<?
$timezone = -5; //(GMT -5:00) EST (U.S. & Canada)
echo gmdate("Y/m/j H:i:s", time() + 3600*($timezone+date("I")));
?>
<?php
$now = time(); // use this so all times are to the same second
$tz = getenv("TZ"); // save local setting so we can reset it later
putenv("TZ=GMT");
printf("<p>The GMT/UDT time is %s</p>\n", date('H:i:s', $now));
putenv("TZ=Europe/London");
printf("<p>The time in London is %s</p>\n", date('H:i:s', $now));
putenv("TZ=Asia/Dubai");
printf("<p>The time in Dubai is %s</p>\n", date('H:i:s', $now));
putenv("TZ=Asia/Hong_Kong");
printf("<p>The time in Hong Kong is %s</p>\n", date('H:i:s', $now));
putenv("TZ=$tz");
printf("<p>The local server time is %s</p>\n", date('H:i:s', $now));
?> 1 to 7 of 7