- $gmt = substr($gmt, 1, strlen($gmt));
- } else if (substr($gmt, 0, 1) == '+') {
- $neg = false;
- $gmt = substr($gmt, 1, strlen($gmt));
- } else {
- $neg = false;
- }
-
- $difference = substr($gmt, 2, 2);
- $gmt = substr($gmt, 0, 2);
- $gmt = ($gmt + ($difference / 60)) * 3600;
- if ($neg) {
- $gmt = "-$gmt";
- } else {
- $gmt = "+$gmt";