aboutsummaryrefslogtreecommitdiffstats
path: root/functions/parse/parse_tzs.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-15 17:25:27 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-15 17:25:27 +0000
commitcb1509c1c670974f54ed67d2076fef39e0d20812 (patch)
tree7f7f64c60ad63cf884cf5562565f46cffd3f9597 /functions/parse/parse_tzs.php
parent99cfde6479207ba9349d8c4a093ef14a1026154d (diff)
downloadphpicalendar-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.php4
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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy