"; $suffix=""; $ourmapstuff=""; $yourmapstuff=""; $formstuff=""; $timezone_abbreviations = DateTimeZone::listAbbreviations(); foreach ($timezone_abbreviations["est"] as $tzo) { $okay=false; //echo $tzn . ' ' . $tzo['timezone_id']; //exit; //echo (str_replace("%2B","+",$_GET['tzname'])); //exit; //echo (3600 * str_replace("+","",$_GET['tzname'])) . " " . $tzo['offset']; //exit; if (strpos($tzo['timezone_id'], $tzn) !== false) { $tz = new DateTimeZone($tzo['timezone_id']); $okay=true; } else if ((3600 * str_replace("+","",$_GET['tzname'])) == $tzo['offset']) { $tz = new DateTimeZone($tzo['timezone_id']); $okay=true; } if ($okay) { $zoneName = $tzo['timezone_id']; $loc = $tz->getLocation(); if ($loc[latitude] != 0 || $loc[longitude] != 0) { if ($tzo['offset'] < 0) { $coffset=($tzo['offset'] / 3600); } else { $coffset="+" . ($tzo['offset'] / 3600); } if ($ourmapstuff == "") { $ourmapstuff=" | | ";
//$formstuff=" "; $prefix=""; $suffix=""; } } } $selstuff.=" | " . $yourmapstuff . "
"; $suffix=""; $ourmapstuff=""; $yourmapstuff=""; $formstuff=""; $ideais="tzs"; if ($_GET['iso'] == '' && isset($_GET['tzname'])) { $ideais="szt"; } else { foreach ( $timeZones as $key => $zoneName ) { $otz = new DateTimeZone("Europe/London"); $tz = new DateTimeZone($zoneName); $origin_dt = new DateTime("now", $otz); $remote_dt = new DateTime("now", $tz); $offset = ($tz->getOffset($remote_dt) - $otz->getOffset($origin_dt)) / 3600; if ($offset < 0) { $coffset=$offset; } else { $coffset="+" . $offset; } // $loc = $tz->getLocation(); if ($ourmapstuff == "") { $ourmapstuff=" | | ";
//$formstuff=" "); $prefix=""; $suffix=""; } } //$yourmapstuff=""; print(" | " . $yourmapstuff . "