diff options
author | Wesley Miaw <josuah@users.sourceforge.net> | 2003-09-20 00:37:36 +0000 |
---|---|---|
committer | Wesley Miaw <josuah@users.sourceforge.net> | 2003-09-20 00:37:36 +0000 |
commit | 2ba3f29f78b9ee4d3358cf1daa4d1d2431c82aa2 (patch) | |
tree | f8d5923ae914ca8c4f2d4ffa325d3115a07d4767 | |
parent | 6b386a7b724aac7510293ff277c285bc7450cd34 (diff) | |
download | phpicalendar-2ba3f29f78b9ee4d3358cf1daa4d1d2431c82aa2.tar.gz phpicalendar-2ba3f29f78b9ee4d3358cf1daa4d1d2431c82aa2.tar.bz2 phpicalendar-2ba3f29f78b9ee4d3358cf1daa4d1d2431c82aa2.zip |
Patch [793608] $day_end value.
Users may now specify a $day_end value in config.inc.php to end the
calendar display before midnight.
-rw-r--r-- | config.inc.php | 1 | ||||
-rw-r--r-- | functions/ical_parser.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/config.inc.php b/config.inc.php index 1308acf..e33d1d1 100644 --- a/config.inc.php +++ b/config.inc.php @@ -12,6 +12,7 @@ $default_cal = $ALL_CALENDARS_COMBINED; // Exact filename of calendar withou $language = 'English'; // Language support - 'English', 'Polish', 'German', 'French', 'Dutch', 'Danish', 'Italian', 'Japanese', 'Norwegian', 'Spanish', 'Swedish', 'Portuguese', 'Catalan', 'Traditional_Chinese', 'Esperanto' $week_start_day = 'Sunday'; // Day of the week your week starts on $day_start = '0800'; // Start time for day grid +$day_end = '2000'; // End time for day grid $gridLength = '15'; // Grid distance in minutes for day view, multiples of 15 preferred $num_years = '3'; // Number of years to display in 'Jump to' $month_event_lines = '1'; // Number of lines to wrap each event title in month view, 0 means display all lines. diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 9045304..4a368ab 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -9,7 +9,7 @@ include(BASE.'functions/timezones.php'); $fillTime = $day_start; $day_array = array (); -while ($fillTime != '2400') { +while ($fillTime < $day_end) { array_push ($day_array, $fillTime); ereg ('([0-9]{2})([0-9]{2})', $fillTime, $dTime); $fill_h = $dTime[1]; |