if ($hourspercent > 12) $hourspercent -= 12;
$hourspercent += [i]your GMT time shift[/i]; if ($hourspercent >= 24) $hourspercent -= 24;