". date("D, M d, Y, H:i:s") . "
GMT". date("O T") ."
\n\t\t"; if($_POST['originalTZ']){// if the user want display the browser detected timezone as well as the selected one. date_default_timezone_set($originalTZ); echo''. date("D, M d, Y, H:i:s") . "
GMT". date("O T") .'
'; date_default_timezone_set($scriptTZ); } if($_POST['displayOffset']){ $tzDifferance = (-1 * ($origHour - $scriptHour)) * 0.01; echo 'The difference between the timezones is ' . $tzDifferance . ' hours
'; } ?>If the detcted timezone is not correct selct your timezone from the dropdown below.