From cb1509c1c670974f54ed67d2076fef39e0d20812 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Mon, 15 Dec 2008 17:25:27 +0000 Subject: big changes to recurrence; trying to get closer to the spec --- functions/parse/parse_tzs.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'functions/parse/parse_tzs.php') diff --git a/functions/parse/parse_tzs.php b/functions/parse/parse_tzs.php index 93f24d5..daafe33 100644 --- a/functions/parse/parse_tzs.php +++ b/functions/parse/parse_tzs.php @@ -17,6 +17,8 @@ while (!feof($ifile)) { $nextline = ereg_replace("[\r\n]", "", $nextline); } $line = trim($line); + $is_daylight = false; + $is_std = false; switch ($line) { case 'BEGIN:VTIMEZONE': @@ -25,6 +27,7 @@ while (!feof($ifile)) { case 'BEGIN:STANDARD': unset ($offset_s); $is_std = true; + $is_daylight = false; break; case 'END:STANDARD': $offset_s = $offset_to; @@ -33,6 +36,7 @@ while (!feof($ifile)) { case 'BEGIN:DAYLIGHT': unset ($offset_d); $is_daylight = true; + $is_std = false; break; case 'END:DAYLIGHT': $offset_d = $offset_to; -- cgit v1.2.3