<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>listing alarms of recurring events which cross a day boundary</title> 
  <pubDate>Fri, 10 Apr 2026 08:07:13 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7035</link> 
  <atom:link rel="self" type="application/rss+xml" title="listing alarms of recurring events which cross a day boundary" href="https://bugs.horde.org/ticket/7035/rss" /> 
  <description>listing alarms of recurring events which cross a day boundary</description> 
 
   
   
  <item> 
   <title>The function mentioned above does not handle recurring event</title> 
   <description>The function mentioned above does not handle recurring events correctly which cross a day boundary. The patch attached fixes this.</description> 
   <pubDate>Sun, 06 Jul 2008 20:02:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7035#t47309</link> 
  </item> 
   
  <item> 
   <title>Please provide a test case to reproduce this.</title> 
   <description>Please provide a test case to reproduce this.</description> 
   <pubDate>Sun, 06 Jul 2008 22:27:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7035#t47325</link> 
  </item> 
   
  <item> 
   <title>&gt; Please provide a test case to reproduce this.



Suppose y</title> 
   <description>&gt; Please provide a test case to reproduce this.



Suppose you have a recurring event each Monday, 16:00 to the following Tuesday, 12:00 with an alarm of 15 minutes before start. Let&#039;s assume it is Monday, 2008-07-07, 15:45, stored in $date. Then the old code



$start = new Horde_Date($next);

$start-&gt;min -= $event-&gt;getAlarm();

$start-&gt;correct();

$end = new Horde_Date(array(

  &#039;year&#039; =&gt; $next-&gt;year,

  &#039;month&#039; =&gt; $next-&gt;month,

  &#039;mday&#039; =&gt; $next-&gt;mday,

  &#039;hour&#039; =&gt; $event-&gt;end-&gt;hour,

  &#039;min&#039; =&gt; $event-&gt;end-&gt;min,

  &#039;sec&#039; =&gt; $event-&gt;end-&gt;sec)); 

 

assigns &quot;2008-07-07 15:45&quot; to $start and &quot;2008-07-07 12:00&quot; to $end. Now the second part of the following comparison



if ($start-&gt;compareDateTime($date) &lt;= 0

  &amp;&amp;  $date-&gt;compareDateTime($end) &lt;= -1)



fails, as $date (&quot;2008-07-07 15:45&quot;) does not come before $end (&quot;2008-07-07 12:00&quot;). The patch fixes this by assigning the correct event end &quot;2008-07-08 12:00&quot; to $end.

</description> 
   <pubDate>Mon, 07 Jul 2008 06:46:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7035#t47339</link> 
  </item> 
   
  <item> 
   <title>The fix is almost correct, but it doesn&#039;t consider DST switc</title> 
   <description>The fix is almost correct, but it doesn&#039;t consider DST switched during the event.</description> 
   <pubDate>Wed, 30 Jul 2008 22:59:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7035#t47917</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/kronolith/lib/Driver/sql.php?r1=1.208&amp;r2=1.209&amp;ty=u</description> 
   <pubDate>Wed, 20 Aug 2008 16:07:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7035#t48312</link> 
  </item> 
   
  <item> 
   <title>Fixed in CVS.</title> 
   <description>Fixed in CVS.</description> 
   <pubDate>Wed, 20 Aug 2008 16:08:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7035#t48313</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
