aboutsummaryrefslogtreecommitdiffstats
path: root/functions/ical_parser.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-26 05:54:46 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-26 05:54:46 +0000
commit7d565474b41400bfce2d665da96d39631458eda3 (patch)
treea0e7a345fb2caeb0eac189b10f2a101a515a2083 /functions/ical_parser.php
parent52ba3b8146dd01c1c7d057359f4485aae5813124 (diff)
downloadphpicalendar-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.php5
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':

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