From: Chuck Hagenbuch Date: Wed, 13 May 2009 01:04:01 +0000 (-0400) Subject: fix calculation of the new span endpoint X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0c710e43497ecc135b69bb4cea88724e613735cd;p=horde.git fix calculation of the new span endpoint --- 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; }