" . "http://www.timezoneconverter.com/cgi-bin/zoneinfo?tz=" . urlencode(str_replace("+","_",urldecode($_GET['timezone']))) . ""; $midbit="http://www.timezoneconverter.com/cgi-bin/zoneinfo?tz=" . urlencode(str_replace("+","_",urldecode($_GET['timezone']))); date_default_timezone_set(str_replace("+"," ",urldecode($_GET['timezone']))); } } else { date_default_timezone_set("UTC"); } $thedate=date('l H:i:s d M Y e I~') . $emflag; if (strpos($thedate, " 1~") !== false) { $thedate=str_replace(" 1~", " ", $thedate); } else if (strpos($thedate, " 0~") !== false) { $midbit=""; $thedate=str_replace(" 0~", " ", $thedate); } $csuff=''; if (isset($_GET['both'])) { $csuff='' . $midbit . ''; } else if (isset($_GET['analogue'])) { $csuff='' . $midbit . ''; } if (strpos(('' . $_SERVER['QUERY_STRING']), "localtime") !== false) { echo "
"; } else { if (isset($_GET['both'])) { echo $thedate . $midbit . '
' . $midbit . ''; } else if (isset($_GET['analogue'])) { echo $thedate . $midbit . '' . $midbit . ''; } else { echo $thedate . $midbit; } } ?>