rounded time to previous 30 minute mark. also some indenting in renderer.php was fixed