diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-11-23 00:11:20 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-11-23 00:11:20 +0000 |
commit | 4f5013dc4bf5cb67032eb75f36a65ba634351774 (patch) | |
tree | 64dbfa0cc70dce86092a6d8c3516b198087e37f6 /functions | |
parent | 847d767b96aea69dc09d8eae5f9e9642efe397f4 (diff) | |
download | phpicalendar-4f5013dc4bf5cb67032eb75f36a65ba634351774.tar.gz phpicalendar-4f5013dc4bf5cb67032eb75f36a65ba634351774.tar.bz2 phpicalendar-4f5013dc4bf5cb67032eb75f36a65ba634351774.zip |
Unset $tz_dstart when finished calculating DTSTART.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 0d9ae0a..699fa31 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -796,7 +796,7 @@ foreach ($cal_filelist as $filename) { // End VTODO Parsing case 'DTSTART': - $data = str_replace ('/softwarestudio.org/Olson_20011030_5/', '', $data); + $field = str_replace ('/softwarestudio.org/Olson_20011030_5/', '', $field); $zulu_time = false; if (substr($data,-1) == 'Z') $zulu_time = true; $data = ereg_replace('T', '', $data); @@ -845,7 +845,7 @@ foreach ($cal_filelist as $filename) { $start_unixtime = calcTime($offset_tmp, $server_offset_tmp, $start_unixtime); $start_date = date('Ymd', $start_unixtime); $start_time = date('Hi', $start_unixtime); - unset($server_offset_tmp); + unset($server_offset_tmp, $offset_tmp, $tz_dtstart); } break; |