diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-26 05:54:46 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-26 05:54:46 +0000 |
commit | 7d565474b41400bfce2d665da96d39631458eda3 (patch) | |
tree | a0e7a345fb2caeb0eac189b10f2a101a515a2083 /functions/ical_parser.php | |
parent | 52ba3b8146dd01c1c7d057359f4485aae5813124 (diff) | |
download | phpicalendar-7d565474b41400bfce2d665da96d39631458eda3.tar.gz phpicalendar-7d565474b41400bfce2d665da96d39631458eda3.tar.bz2 phpicalendar-7d565474b41400bfce2d665da96d39631458eda3.zip |
fix US holidays; fix 1743686 where byday set and timezone pushes event to different day
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r-- | functions/ical_parser.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 87a3cf0..e3995a3 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -279,6 +279,11 @@ foreach ($cal_filelist as $cal_key=>$filename) { $start_date = $datetime[1]; $start_time = $datetime[2]; $allday_start = $datetime[3]; + $start_tz = $datetime[4]; + preg_match ('/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{0,2})([0-9]{0,2})/', $data, $regs); + $vevent_start_date = $regs[1] . $regs[2] . $regs[3]; + $day_offset = dayCompare($start_date, $vevent_start_date); + #echo date("Ymd Hi", $start_unixtime)." $start_date $start_time $vevent_start_date $day_offset<br>"; break; case 'DTEND': |