From 0c710e43497ecc135b69bb4cea88724e613735cd Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 12 May 2009 21:04:01 -0400 Subject: [PATCH] fix calculation of the new span endpoint --- framework/Date_Parser/lib/Horde/Date/Repeater/DayPortion.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/Date_Parser/lib/Horde/Date/Repeater/DayPortion.php b/framework/Date_Parser/lib/Horde/Date/Repeater/DayPortion.php index 36ff50df6..f87395be1 100644 --- a/framework/Date_Parser/lib/Horde/Date/Repeater/DayPortion.php +++ b/framework/Date_Parser/lib/Horde/Date/Repeater/DayPortion.php @@ -109,8 +109,7 @@ class Horde_Date_Repeater_DayPortion extends Horde_Date_Repeater parent::this($context); $rangeStart = new Horde_Date(array('year' => $this->now->year, 'month' => $this->now->month, 'day' => $this->now->day, 'sec' => $this->range[0])); - $rangeEnd = new Horde_Date(array('year' => $rangeStart->year, 'month' => $rangeStart->month, 'day' => $rangeStart->day, 'sec' => $this->range[1] - $this->range[0])); - $this->currentSpan = new Horde_Date_Span($rangeStart, $rangeEnd); + $this->currentSpan = new Horde_Date_Span($rangeStart, $rangeStart->add($this->range[1] - $this->range[0])); return $this->currentSpan; } -- 2.11.0