getPref('timeOffset')) $defaultOffset = $PreftimeOffset; else $defaultOffset = TimezoneOffset(false, true); $yourTime = date('D, j M Y H:i:s ', time() + PrefTimezoneOffset()) . $defaultOffset; /** * Generate the popup menu. */ $select = HTML(); for ($z = -14; $z < 12; $z++) { $tz_val = seconds2zoneOffset($z*60*60, true); $tz_string = seconds2zoneOffset($z*60*60); $selected = $defaultOffset == $tz_val ? array('selected' => 'selected') : array(); $select->pushContent(HTML::option(array_merge(array('value' => $tz_val), $selected), $tz_string)); $z = $z-0.5; } $TimeZoneSelect = HTML("GMT ", HTML::select(array('name' => "pref[timeOffset]"), $select)); ?>

Times converted to your zone will be marked with an asterisk (*).