From d1ecda416dce01c72112b7d88a9902a1d8854ddc Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 5 Aug 2001 03:39:35 +0000 Subject: [PATCH] Fix for bug #447188. --- calendar/inc/class.uicalendar.inc.php | 6 +++--- phpgwapi/inc/class.sbox.inc.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index cc500a6e39..6bbccf27da 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -2628,7 +2628,7 @@ $var[] = Array( 'field' => lang('Start Date'), 'data' => $phpgw->common->dateformatorder( - $sb->getYears('start[year]',intval($phpgw->common->show_date($start,'Y')),intval($phpgw->common->show_date($start,'Y'))), + $sb->getYears('start[year]',intval($phpgw->common->show_date($start,'Y'))), $sb->getMonthText('start[month]',intval($phpgw->common->show_date($start,'n'))), $sb->getDays('start[mday]',intval($phpgw->common->show_date($start,'d'))) ) @@ -2649,7 +2649,7 @@ $var[] = Array( 'field' => lang('End Date'), 'data' => $phpgw->common->dateformatorder( - $sb->getYears('end[year]',intval($phpgw->common->show_date($end,'Y')),intval($phpgw->common->show_date($end,'Y'))), + $sb->getYears('end[year]',intval($phpgw->common->show_date($end,'Y'))), $sb->getMonthText('end[month]',intval($phpgw->common->show_date($end,'n'))), $sb->getDays('end[mday]',intval($phpgw->common->show_date($end,'d'))) ) @@ -2765,7 +2765,7 @@ 'field' => lang('Repeat End Date'), 'data' => ''.lang('Use End Date').' ' .$phpgw->common->dateformatorder( - $sb->getYears('recur_enddate[year]',intval($phpgw->common->show_date($recur_end,'Y')),intval($phpgw->common->show_date($recur_end,'Y'))), + $sb->getYears('recur_enddate[year]',intval($phpgw->common->show_date($recur_end,'Y'))), $sb->getMonthText('recur_enddate[month]',intval($phpgw->common->show_date($recur_end,'n'))), $sb->getDays('recur_enddate[mday]',intval($phpgw->common->show_date($recur_end,'d'))) ) diff --git a/phpgwapi/inc/class.sbox.inc.php b/phpgwapi/inc/class.sbox.inc.php index c0c31b5bef..4f32648b4d 100644 --- a/phpgwapi/inc/class.sbox.inc.php +++ b/phpgwapi/inc/class.sbox.inc.php @@ -409,13 +409,13 @@ { if (!$startYear) { - $startYear = date('Y') - 2; + $startYear = date('Y') - 5; } if ($selected && $startYear > $selected) $startYear = $selected; if (!$endyear) { - $endyear = date('Y') + 5; + $endyear = date('Y') + 6; } if ($selected && $endYear < $selected) $endYear = $selected;