aboutsummaryrefslogtreecommitdiffstats
path: root/ical_parser.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-09-30 03:50:40 +0000
committerjwangen <jwangen>2002-09-30 03:50:40 +0000
commit4706c676d2c1995efdac08750f66f5ce37529866 (patch)
tree5bc060e9b38814ebe1c5f09d39a42bde0b6913ea /ical_parser.php
parent7aeb7747f21d936f33ced01e19073c6f9957f5a3 (diff)
downloadphpicalendar-4706c676d2c1995efdac08750f66f5ce37529866.tar.gz
phpicalendar-4706c676d2c1995efdac08750f66f5ce37529866.tar.bz2
phpicalendar-4706c676d2c1995efdac08750f66f5ce37529866.zip
dateOfWeek now expects 3 char day names, instead of Apple's 2 char names
Diffstat (limited to 'ical_parser.php')
-rw-r--r--ical_parser.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/ical_parser.php b/ical_parser.php
index 2468140..365ce1b 100644
--- a/ical_parser.php
+++ b/ical_parser.php
@@ -253,7 +253,7 @@ foreach($contents as $line) {
$start_range_time = strtotime("$this_year-$this_month-01");
$end_range_time = strtotime("+1 month +1 week", $start_range_time);
} else {
- $start_range_time = strtotime(dateOfWeek($getdate, substr($week_start_day, 0, 2)));
+ $start_range_time = strtotime(dateOfWeek($getdate, $week_start_day));
$end_range_time = strtotime("+1 week", $start_range_time);
}
*/
@@ -291,6 +291,7 @@ foreach($contents as $line) {
foreach($byday as $day) {
// use my fancy little function to get the date of each day
+ $day = two2threeCharDays($day);
$next_date = dateOfWeek(date("Ymd", $next_range_time),$day);
$next_date_time = strtotime($next_date);

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