diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-15 17:25:27 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-15 17:25:27 +0000 |
commit | cb1509c1c670974f54ed67d2076fef39e0d20812 (patch) | |
tree | 7f7f64c60ad63cf884cf5562565f46cffd3f9597 /functions/parse/parse_tzs.php | |
parent | 99cfde6479207ba9349d8c4a093ef14a1026154d (diff) | |
download | phpicalendar-cb1509c1c670974f54ed67d2076fef39e0d20812.tar.gz phpicalendar-cb1509c1c670974f54ed67d2076fef39e0d20812.tar.bz2 phpicalendar-cb1509c1c670974f54ed67d2076fef39e0d20812.zip |
big changes to recurrence; trying to get closer to the spec
Diffstat (limited to 'functions/parse/parse_tzs.php')
-rw-r--r-- | functions/parse/parse_tzs.php | 4 |
1 files changed, 4 insertions, 0 deletions
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; |